:root {
    --primary:       #4B2E2B;   /* Deep Brown */
    --primary-light: #6F4E37;   /* Coffee */
    --accent:        #C19A6B;   /* Caramel */
    --accent-light:  #E6C9A8;   /* Soft Tan */
    --bg:            #FDF8F3;   /* Cream */
    --surface:       #FFFFFF;
    --surface2:      #F4ECE6;   /* Warm surface */
    --text:          #2B1B17;   /* Dark Brown text */
    --text-sec:      #7A5C50;   /* Secondary */
    --border:        rgba(75, 46, 43, 0.15);

    --gradient:      linear-gradient(135deg, #4B2E2B 0%, #C19A6B 100%);
    --gradient-soft: linear-gradient(135deg, #F4ECE6 0%, #FFF7ED 100%);

    --shadow:        0 4px 24px rgba(75,46,43,0.12);
    --shadow-lg:     0 12px 48px rgba(75,46,43,0.18);

    --radius:        16px;
    --radius-sm:     10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--gradient-soft);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Decorative blobs */
body::before {
    content: '';
    position: fixed;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 63, 197, 0.08) 0%, transparent 70%);
    top: -200px; right: -150px;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 140, 0.06) 0%, transparent 70%);
    bottom: -150px; left: -100px;
    pointer-events: none;
}

/* ===== LOGIN CARD ===== */
.login-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card {
    background: var(--surface);
    border-radius: 26px;
    padding: 2.8rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Logo */
.login-logo {
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.3rem;
}
.login-logo .syn  { color: var(--primary); }
.login-logo .tara { color: var(--accent); }

.login-tagline {
    text-align: center;
    color: var(--text-sec);
    font-size: 0.855rem;
    margin-bottom: 2rem;
}

/* Alert */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    font-size: 0.845rem;
    font-weight: 500;
}
.alert-error {
    background: #FFEBEE;
    color: #B71C1C;
    border: 1px solid #FFCDD2;
}
.alert-success {
    background: #E8F5E9;
    color: #1B5E20;
    border: 1px solid #C8E6C9;
}

/* Form */
.form-group { margin-bottom: 1.15rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.42rem;
}
.form-control {
    width: 100%;
    padding: 0.78rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 63, 197, 0.1);
    background: white;
}
.form-control.is-invalid { border-color: #E53935; }
.invalid-feedback {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.79rem;
    color: #C62828;
    font-weight: 500;
}

.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    font-size: 0.81rem;
}
.form-meta label {
    display: flex; align-items: center; gap: 0.4rem;
    cursor: pointer;
    color: var(--text-sec);
}
.form-meta a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.form-meta a:hover { text-decoration: underline; }

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 0.9rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    box-shadow: 0 6px 18px rgba(233, 30, 140, 0.28);
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(233, 30, 140, 0.38);
}
.btn-submit:active { transform: translateY(0); }

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.4rem 0;
}
.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    border-top: 1px solid var(--border);
}
.divider span {
    position: relative;
    background: white;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: var(--text-sec);
}

/* Demo Buttons */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}
.btn-demo {
    padding: 0.45rem 0;
    background: transparent;
    color: var(--text-sec);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-demo:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface2);
}

.login-footer {
    text-align: center;
    margin-top: 1.3rem;
    font-size: 0.81rem;
    color: var(--text-sec);
}
.login-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}