/* ═══════════════════════════════════════════════════════════════
   INVITAME DIGITAL — Login Page CSS
   Aesthetic: Luxury editorial — Cream / Gold / Charcoal
   Fonts: Cormorant Garamond (display) + Jost (body)
═══════════════════════════════════════════════════════════════ */

/* ─── CSS VARS ─────────────────────────────────────────────────── */
:root {
    --cream:       #FAF8F4;
    --cream-dark:  #F2EDE5;
    --charcoal:    #1C1C1E;
    --charcoal-80: rgba(28,28,30,.8);
    --gold:        #C4A97D;
    --gold-dark:   #9E7D52;
    --gold-light:  #EDD9B8;
    --rose:        #D4A0A8;
    --muted:       #888;
    --border:      #E8E2D8;
    --white:       #FFFFFF;

    --font-display: 'Cormorant Garamond', serif;
    --font-body:    'Jost', sans-serif;

    --radius:       12px;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
    --shadow-md:    0 8px 24px rgba(0,0,0,.10);
    --shadow-lg:    0 20px 60px rgba(0,0,0,.14);
    --transition:   0.35s cubic-bezier(.25,.8,.25,1);
}

/* ─── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}
a { color: inherit; text-decoration: none; }

/* ─── LOGIN LAYOUT ──────────────────────────────────────────────── */
.login-wrap {
    display: flex;
    min-height: 100vh;
}

/* ─── DECORATIVE PANEL (LEFT) ──────────────────────────────────── */
.login-deco {
    position: relative;
    flex: 0 0 44%;
    background: linear-gradient(160deg, var(--charcoal) 0%, #2a2a2e 50%, #1a1a20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem;
}
.deco-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 380px;
}
.deco-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.deco-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,.65);
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}
.deco-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.deco-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,.8);
}
.deco-feat i {
    color: var(--gold);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ─── DECORATIVE CIRCLES ───────────────────────────────────────── */
.deco-circles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.deco-c {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(196,169,125,.15);
}
.deco-c.c1 {
    width: 350px; height: 350px;
    top: -80px; right: -100px;
    background: radial-gradient(circle, rgba(196,169,125,.06) 0%, transparent 70%);
}
.deco-c.c2 {
    width: 250px; height: 250px;
    bottom: -60px; left: -80px;
    background: radial-gradient(circle, rgba(196,169,125,.05) 0%, transparent 70%);
}
.deco-c.c3 {
    width: 180px; height: 180px;
    top: 50%; left: 60%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.05);
}

/* ─── FORM PANEL (RIGHT) ───────────────────────────────────────── */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--cream);
}
.login-form-inner {
    width: 100%;
    max-width: 420px;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 400;
    margin-bottom: 2rem;
    transition: color var(--transition);
}
.back-link:hover {
    color: var(--charcoal);
}

/* Header */
.login-header {
    margin-bottom: 2rem;
}
.login-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.login-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--charcoal);
    margin: 0 0 0.4rem;
}
.login-header p {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 300;
}

/* ─── ALERTS ───────────────────────────────────────────────────── */
.login-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.alert-info {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}
.alert-error {
    background: #FFF0F0;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* ─── FORM ─────────────────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.form-field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}
.form-field label i {
    color: var(--gold);
    font-size: 0.85rem;
}
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--charcoal);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,169,125,.15);
}
.form-field input::placeholder {
    color: #bbb;
}

/* Password toggle wrapper */
.pass-wrap {
    position: relative;
}
.pass-wrap input {
    padding-right: 3rem;
}
.pass-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}
.pass-toggle:hover {
    background: var(--gold-dark);
}

/* ─── SUBMIT BUTTON ────────────────────────────────────────────── */
.btn-login {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    letter-spacing: 0.3px;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196,169,125,.35);
}
.btn-login:active {
    transform: translateY(0);
}
.btn-login .hidden {
    display: none;
}

/* ─── FOOTER LINKS ─────────────────────────────────────────────── */
.login-footer-links {
    text-align: center;
}
.login-footer-links p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.login-footer-links a {
    color: var(--gold-dark);
    font-weight: 500;
    transition: color var(--transition);
}
.login-footer-links a:hover {
    color: var(--charcoal);
    text-decoration: underline;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-wrap {
        flex-direction: column;
    }
    .login-deco {
        flex: none;
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    .deco-content {
        max-width: 100%;
    }
    .deco-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
    }
    .deco-feat {
        font-size: 0.8rem;
    }
    .login-form-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .deco-logo {
        font-size: 1.5rem;
    }
    .deco-tagline {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    .deco-features {
        flex-direction: column;
    }
    .login-header h1 {
        font-size: 1.6rem;
    }
}
