/* ═══════════════════════════════════════
   ELEGANZA — Authentication Components CSS
   ═══════════════════════════════════════ */

:root {
    --navy-deep:   #0d0f1a;
    --navy-mid:    #1a1a2e;
    --navy-light:  #16213e;
    --gold:        #c8a96e;
    --gold-light:  #d4b97e;
    --gold-pale:   rgba(200,169,110,0.12);
    --gold-border: rgba(200,169,110,0.25);
    --text-light:  #e8e0d0;
    --text-muted:  rgba(232,224,208,0.55);
    --white:       #ffffff;
    --error:       #e05c5c;
    --success:     #4ade80;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--navy-deep);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* ── Background Decoration ── */
.bg-decoration {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    animation: orbFloat 20s ease-in-out infinite;
}
.bg-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -200px; left: -100px;
}
.bg-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #3d2b6e 0%, transparent 70%);
    bottom: -100px; right: -50px;
    animation-delay: -10s;
}
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(40px,30px) scale(1.08); }
}

/* ── Layout ── */
.page-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── Left Hero ── */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6%;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold-border), transparent);
}
.hero-logo {
    margin-bottom: 3rem;
    animation: fadeUp .8s ease-out;
}
.hero-logo img {
    max-width: 220px;
    height: auto;
    filter: brightness(1.1);
}
.hero-logo .brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeUp .8s ease-out .15s backwards;
}
.hero-title em {
    font-style: italic;
    color: var(--gold);
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
    max-width: 420px;
    animation: fadeUp .8s ease-out .3s backwards;
}
.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 2rem 0;
    animation: fadeUp .8s ease-out .45s backwards;
}
.hero-tagline {
    font-size: .8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .7;
    animation: fadeUp .8s ease-out .5s backwards;
}

/* ── Right Form Panel ── */
.form-panel {
    width: 460px;
    background: linear-gradient(160deg, #12142a 0%, #0e1020 100%);
    border-left: 1px solid var(--gold-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 2.8rem;
    animation: slideRight .7s ease-out;
}
.panel-header {
    margin-bottom: 2.5rem;
}
.panel-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.panel-header p {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 300;
}
.gold-bar {
    width: 40px; height: 2px;
    background: var(--gold);
    margin: .8rem 0 0;
    border-radius: 2px;
}

/* ── Alerts ── */
.alert {
    padding: .85rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
    animation: fadeIn .4s ease-out;
}
.alert-success { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.3); color: var(--success); }
.alert-danger  { background: rgba(224,92,92,.08);  border-color: rgba(224,92,92,.3);  color: var(--error); }

/* ── Form ── */
.form-group { margin-bottom: 1.3rem; }
.form-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
    opacity: .85;
}
.form-input {
    width: 100%;
    padding: .85rem 1.1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: .95rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all .3s ease;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    border-color: var(--gold);
    background: rgba(200,169,110,.06);
    box-shadow: 0 0 0 3px rgba(200,169,110,.1);
}
.form-input.is-invalid { border-color: var(--error); }
.invalid-feedback { display: block; font-size: .78rem; color: var(--error); margin-top: .35rem; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    font-size: .82rem;
}
.checkbox-wrap { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); }
.checkbox-wrap input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }
.forgot-link { color: var(--gold); text-decoration: none; font-size: .82rem; opacity: .8; transition: opacity .2s; }
.forgot-link:hover { opacity: 1; }

.form-grid, .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.phone-wrap {
    display: flex;
    gap: 0.5rem;
}

.phone-wrap .form-select {
    width: 140px;
    flex-shrink: 0;
}

.form-select {
    width: 100%;
    padding: .85rem 1.1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: .95rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all .3s ease;
}

.form-select:focus {
    border-color: var(--gold);
    background: rgba(200,169,110,.06);
    box-shadow: 0 0 0 3px rgba(200,169,110,.1);
}

.form-helper {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .35rem;
    opacity: .7;
}

.hero-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .85rem;
    color: var(--text-muted);
    animation: fadeUp .8s ease-out .6s backwards;
}

.feature-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Hero Icon ── */
.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(200,169,110,.12);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeUp .8s ease-out;
}

.hero-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
}

/* ── Hero Steps ── */
.hero-steps {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-step {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    font-size: .85rem;
    color: var(--text-muted);
    animation: fadeUp .8s ease-out .6s backwards;
}

.step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ── Back Link ── */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .85rem;
    margin-top: 1.5rem;
    background: transparent;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease;
}

.back-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-pale);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* ── Hero Tip ── */
.hero-tip {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(200,169,110,.08);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    animation: fadeUp .8s ease-out .6s backwards;
}

.hero-tip-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: .4rem;
}

.hero-tip p {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Buttons ── */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-deep);
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200,169,110,.35); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .85rem;
    margin-top: .8rem;
    background: transparent;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.btn-ghost svg { width: 16px; height: 16px; }

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.8rem 0;
    color: var(--text-muted);
    font-size: .78rem;
    letter-spacing: 1px;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--gold-border);
}

.register-link, .login-link {
    text-align: center;
    font-size: .82rem;
    color: var(--text-muted);
}
.register-link a, .login-link a { color: var(--gold); text-decoration: none; font-weight: 600; }
.register-link a:hover, .login-link a:hover { text-decoration: underline; }

/* ── Auth Card Layout (Forgot Password, Reset Password) ── */
.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background: linear-gradient(160deg, #12142a 0%, #0e1020 100%);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    animation: fadeUp .7s ease-out;
}

.auth-card .panel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .panel-header h2 {
    font-size: 1.8rem;
    margin-bottom: .6rem;
}

.auth-card .gold-bar {
    margin: .8rem auto 0;
}

.auth-card .form-group:last-of-type {
    margin-bottom: 2rem;
}

/* ── Simple Layout for Forgot/Reset Pages ── */
.auth-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero { display: none; }
    .form-panel { width: 100%; border-left: none; }
}
@media (max-width: 480px) {
    .form-panel { padding: 2.5rem 1.5rem; }
    .panel-header h2 { font-size: 1.7rem; }
    .auth-card { padding: 2.5rem 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
}