:root {
    --primary:   #6C63FF;
    --primary-d: #4A42D6;
    --secondary: #FF6B6B;
    --accent:    #00D4AA;
    --bg:        #0B0B18;
    --surface:   #12121F;
    --border:    rgba(108,99,255,.2);
    --text:      #E8E8F0;
    --text-dim:  #9090B0;
    --radius:    14px;
    --shadow:    0 20px 60px rgba(0,0,0,.6);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

/* Background mesh gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 0%, rgba(108,99,255,.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255,107,107,.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 60% 40%, rgba(0,212,170,.07) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(108,99,255,.4);
}
.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-logo p { color: var(--text-dim); font-size: .875rem; margin-top: 4px; }

.auth-card {
    background: rgba(26,26,46,.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.auth-card h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text);
}

.form-group { margin-bottom: 18px; position: relative; }
.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(11,11,24,.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,.2);
}
.form-control::placeholder { color: rgba(144,144,176,.5); }

.btn-auth {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-d));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    margin-top: 8px;
    letter-spacing: .3px;
}
.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(108,99,255,.5);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: .85rem;
    color: var(--text-dim);
}
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { color: var(--accent); }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 18px;
}
.alert-error   { background: rgba(255,71,87,.12); border: 1px solid rgba(255,71,87,.3); color: #FF6B72; }
.alert-success { background: rgba(46,213,115,.12); border: 1px solid rgba(46,213,115,.3); color: #2ED573; }

.alert ul { margin: 6px 0 0 16px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-dim); font-size: .8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.slug-preview {
    font-size: .78rem;
    color: var(--accent);
    margin-top: 4px;
}

@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }
}
