/* File: assets/css/auth.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent:    #1a1a2e;
    --accent-2:  #16213e;
    --gold:      #c9a84c;
    --gold-lt:   rgba(201,168,76,.15);
    --gold-dk:   #b8962e;
    --red:       #d63031;
    --green:     #18a058;
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;
    --font:      'Sora', sans-serif;
    --mono:      'DM Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--accent);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; }

body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        linear-gradient(135deg, var(--accent) 0%, #0f3460 50%, #533483 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0; pointer-events: none;
}

.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
    position: absolute; border-radius: 50%;
    background: var(--gold); opacity: 0;
    animation: float linear infinite;
}
@keyframes float {
    0%   { transform: translateY(110vh) scale(0); opacity: 0; }
    10%  { opacity: .15; }
    90%  { opacity: .08; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.auth-page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%; max-width: 440px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-logo {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 1.05rem; font-weight: 700; color: #fff;
    margin-bottom: 22px;
}
.auth-logo i { color: var(--gold); }

.auth-card h1 {
    font-size: 1.55rem; font-weight: 700; color: #fff;
    letter-spacing: -.02em; margin-bottom: 6px;
}
.auth-sub {
    font-size: .85rem; color: rgba(255,255,255,.5);
    margin-bottom: 26px; line-height: 1.5;
}

.auth-alert {
    border-radius: var(--radius-sm); padding: 12px 14px;
    margin-bottom: 18px; font-size: .8rem; line-height: 1.5;
}
.auth-alert p { display: flex; align-items: flex-start; gap: 8px; }
.auth-alert-error {
    background: rgba(214,48,49,.12); border: 1px solid rgba(214,48,49,.3);
    color: #ff8b8b;
}
.auth-alert-success {
    background: rgba(24,160,88,.12); border: 1px solid rgba(24,160,88,.3);
    color: #5fe0a0;
}

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: .76rem; font-weight: 600;
    color: rgba(255,255,255,.65); margin-bottom: 7px;
    text-transform: uppercase; letter-spacing: .04em;
}
.form-group input {
    width: 100%;
    border: 1.5px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07); color: #fff;
    border-radius: var(--radius-sm); padding: 12px 14px;
    font-family: var(--font); font-size: .88rem; outline: none;
    transition: border-color .2s, background .2s;
}
.form-group input::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus {
    border-color: var(--gold); background: rgba(255,255,255,.1);
}

.auth-btn {
    width: 100%;
    background: var(--gold); color: var(--accent);
    border: none; border-radius: var(--radius-sm);
    padding: 13px; font-family: var(--font);
    font-size: .9rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 8px;
    transition: background .15s, transform .15s;
}
.auth-btn:hover { background: var(--gold-dk); transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }

.auth-switch {
    text-align: center; margin-top: 22px;
    font-size: .82rem; color: rgba(255,255,255,.45);
}
.auth-switch a { color: var(--gold); font-weight: 600; }
.auth-switch a:hover { color: #fff; }