/* =========================================
   SIGNIN — ADBELIV
   Dark × Gold + Light mode
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --gold: #C9A84C;
    --gold-light: #e8c97a;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --bg-primary:     #0a0a0a;
    --bg-secondary:   #111111;
    --bg-tertiary:    #1a1a1a;
    --text-primary:   #f8f6f2;
    --text-secondary: rgba(248, 246, 242, 0.6);
    --text-faint:     rgba(248, 246, 242, 0.3);
    --text-form-faint: rgba(248, 246, 242, 0.35);
    --border-subtle:  rgba(201, 168, 76, 0.1);
    --border-mid:     rgba(201, 168, 76, 0.15);
    --border-input:   rgba(255, 255, 255, 0.1);
    --input-bg:       rgba(255, 255, 255, 0.04);
    --input-focus-bg: rgba(201, 168, 76, 0.04);
    --placeholder:    rgba(248, 246, 242, 0.2);
    --shadow-mid:     rgba(0, 0, 0, 0.5);
    --navbar-bg:      rgba(10, 10, 10, 0.92);
    --gold-accent:    #C9A84C;
    --cta-text:       #0a0a0a;
    --left-bg:        #111111;
    --right-bg:       #0a0a0a;
    --divider:        linear-gradient(to bottom, transparent, rgba(201,168,76,0.3), transparent);
}

body.light-mode {
    --bg-primary:     #FAF8F4;
    --bg-secondary:   #F0EDE6;
    --bg-tertiary:    #E8E4DA;
    --text-primary:   #1C160A;
    --text-secondary: rgba(28, 22, 10, 0.62);
    --text-faint:     rgba(28, 22, 10, 0.35);
    --text-form-faint: rgba(28, 22, 10, 0.4);
    --border-subtle:  rgba(168, 121, 31, 0.2);
    --border-mid:     rgba(168, 121, 31, 0.28);
    --border-input:   rgba(28, 22, 10, 0.15);
    --input-bg:       rgba(28, 22, 10, 0.03);
    --input-focus-bg: rgba(168, 121, 31, 0.05);
    --placeholder:    rgba(28, 22, 10, 0.25);
    --shadow-mid:     rgba(90, 65, 10, 0.1);
    --navbar-bg:      rgba(0, 0, 0, 0.95);
    --gold-accent:    #8F6514;
    --cta-text:       #FAF8F4;
    --left-bg:        #F0EDE6;
    --right-bg:       #FAF8F4;
    --divider:        linear-gradient(to bottom, transparent, rgba(168,121,31,0.3), transparent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease, color 0.5s ease;
}

main { flex: 1; }

/* ── THEME TOGGLE ───────────────────────── */
.theme-toggle {
    position: fixed; bottom: 32px; right: 32px; z-index: 99999;
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid var(--border-mid); background: var(--bg-secondary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px var(--shadow-mid);
    transition: background 0.5s ease, border-color 0.5s ease, transform 0.25s ease, box-shadow 0.3s ease;
    outline: none;
}
.theme-toggle:hover { transform: scale(1.09); box-shadow: 0 12px 40px var(--shadow-mid), 0 0 0 1px var(--gold-accent); border-color: var(--gold-accent); }
.theme-toggle:active { transform: scale(0.94); }
.toggle-icon { position: relative; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.toggle-icon svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: var(--gold-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34,1.56,0.64,1), stroke 0.5s ease; }
.toggle-icon .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.toggle-icon .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }
body.light-mode .toggle-icon .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
body.light-mode .toggle-icon .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle::after { content: attr(data-tooltip); position: absolute; right: 62px; bottom: 50%; transform: translateY(50%); background: var(--bg-tertiary); color: var(--text-secondary); font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; border: 1px solid var(--border-mid); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.theme-toggle:hover::after { opacity: 1; }
@keyframes togglePulse { 0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); } 70% { box-shadow: 0 0 0 12px rgba(201,168,76,0); } 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); } }
.theme-toggle.pulse { animation: togglePulse 0.65s ease-out; }

/* ── NAVBAR ─────────────────────────────── */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; transition: background var(--transition), border-color 0.5s ease; }
header.scrolled { background: var(--navbar-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-mid); }
body.light-mode header { background: rgba(0,0,0,0.82); }
body.light-mode header.scrolled { background: rgba(0,0,0,0.95); border-bottom-color: rgba(201,168,76,0.2); }
body.light-mode .navbar .left a { color: rgba(248,246,242,0.65); }
body.light-mode .navbar .left a:hover { color: var(--gold-light); }
body.light-mode .lang-dropdown { color: rgba(248,246,242,0.7); border-color: rgba(201,168,76,0.35); }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0 48px; height: 72px; }
.navbar .left, .navbar .right { flex: 1; display: flex; align-items: center; }
.navbar .right { justify-content: flex-end; gap: 15px; }
.navbar .left a { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.navbar .left a:hover { color: var(--gold-accent); }
.logo { flex: 0 0 auto; display: flex; justify-content: center; }
.logo img { height: 55px; width: auto; transition: opacity var(--transition); }
.logo:hover img { opacity: 0.8; }
.right .get-started-btn { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg-primary); background: var(--gold-accent); text-decoration: none; padding: 10px 22px; border-radius: 2px; transition: background var(--transition), transform var(--transition), color 0.5s ease; display: inline-block; }
.right .get-started-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.language-selector { margin-left: 24px; }
.lang-dropdown { background: transparent; border: 1px solid rgba(201,168,76,0.3); color: var(--text-secondary); font-family: var(--font-body); font-size: 0.75rem; padding: 5px 8px; border-radius: 2px; cursor: pointer; outline: none; transition: border-color var(--transition), color 0.5s ease; }
.lang-dropdown:hover, .lang-dropdown:focus { border-color: var(--gold-accent); color: var(--text-primary); }
.lang-dropdown option { background: #1a1a1a; color: #f8f6f2; }

/* ── SIGNIN LAYOUT ──────────────────────── */
.signin-wrapper { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.signin-left { background: var(--left-bg); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; justify-content: center; padding: 120px 72px 80px; position: relative; transition: background 0.5s ease, border-color 0.5s ease; }
.signin-left::after { content: ''; position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: var(--divider); }

.signin-eyebrow { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-accent); margin-bottom: 24px; opacity: 0; animation: fadeUp 0.8s 0.1s forwards; transition: color 0.5s ease; }
.signin-heading { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 300; line-height: 1.1; color: var(--text-primary); margin-bottom: 24px; opacity: 0; animation: fadeUp 0.9s 0.25s forwards; transition: color 0.5s ease; }
.signin-heading .highlight { font-weight: 700; font-style: italic; color: var(--gold-accent); transition: color 0.5s ease; }
.signin-subtext { font-family: var(--font-body); font-size: 0.95rem; font-weight: 300; color: var(--text-secondary); line-height: 1.8; max-width: 340px; opacity: 0; animation: fadeUp 0.9s 0.4s forwards; transition: color 0.5s ease; }

.signin-right { display: flex; align-items: center; justify-content: center; padding: 120px 72px 80px; background: var(--right-bg); transition: background 0.5s ease; }

/* ── FORM ───────────────────────────────── */
.signin-form { width: 100%; max-width: 400px; opacity: 0; animation: fadeUp 1s 0.3s forwards; }
.signin-form h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; color: var(--text-primary); margin-bottom: 40px; transition: color 0.5s ease; }
.field-group { margin-bottom: 24px; }
.field-group label { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; transition: color 0.5s ease; }
.field-group input { width: 100%; background: var(--input-bg); border: 1px solid var(--border-input); border-radius: 2px; padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 300; color: var(--text-primary); outline: none; transition: border-color var(--transition), background var(--transition), color 0.5s ease; }
.field-group input::placeholder { color: var(--placeholder); }
.field-group input:focus { border-color: var(--gold-accent); background: var(--input-focus-bg); }
.signin-form button[type="submit"] { width: 100%; background: var(--gold-accent); color: var(--cta-text); font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; border: none; border-radius: 2px; padding: 16px; cursor: pointer; margin-top: 8px; transition: background var(--transition), transform var(--transition), color 0.5s ease; }
.signin-form button[type="submit"]:hover { background: var(--gold-light); transform: translateY(-1px); }
.form-footer { font-family: var(--font-body); font-size: 0.82rem; font-weight: 300; color: var(--text-form-faint); text-align: center; margin-top: 24px; transition: color 0.5s ease; }
.form-footer a { color: var(--gold-accent); text-decoration: none; transition: color var(--transition); }
.form-footer a:hover { color: var(--gold-light); }

/* ── FOOTER ─────────────────────────────── */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: 32px 48px; display: flex; align-items: center; justify-content: center; transition: background 0.5s ease, border-color 0.5s ease; }
footer p { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text-faint); text-transform: uppercase; transition: color 0.5s ease; }

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
    .signin-wrapper { grid-template-columns: 1fr; }
    .signin-left { padding: 140px 40px 60px; border-right: none; border-bottom: 1px solid var(--border-subtle); }
    .signin-right { padding: 60px 40px 80px; }
}
@media (max-width: 768px) {
    .navbar { padding: 0 20px; height: 60px; }
    .logo img { height: 28px; }
    .right .get-started-btn { padding: 8px 14px; font-size: 0.72rem; }
    .signin-left { padding: 120px 24px 48px; }
    .signin-right { padding: 48px 24px 60px; }
    footer { padding: 28px 24px; }
    .theme-toggle { bottom: 20px; right: 20px; width: 46px; height: 46px; }
    .theme-toggle::after { display: none; }
}
@media (max-width: 480px) {
    .navbar { padding: 0 10px; height: 52px; }
    .navbar .left a { font-size: 0.62rem; letter-spacing: 0.04em; }
    .logo img { height: 20px; }
    .navbar .right { gap: 4px; }
    .right .get-started-btn { padding: 5px 7px; font-size: 0.55rem; letter-spacing: 0.04em; }
    .language-selector { margin-left: 2px; }
    .lang-dropdown { font-size: 0.6rem; padding: 3px 4px; letter-spacing: 0; }
}
