/* ============================================
   Едувърс LMS — Публични страници (тъмна тема)
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #09090b;
    --surface: #111114;
    --card: #16161a;
    --border: rgba(255,255,255,0.07);
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --white: #f0ede8;
    --muted: #6b6b72;
    --text: #c8c5be;
    --error: #e07070;
    --success: #7fc97f;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Фонов ефект */
body::before {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 65%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    z-index: 0;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.auth-logo h1 span {
    color: var(--gold);
}

.auth-logo .subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
}

.auth-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.auth-card .auth-intro {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 0.85rem 1rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

input:focus {
    border-color: var(--gold);
}

input::placeholder {
    color: var(--muted);
}

.btn {
    display: inline-block;
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.95rem 2rem;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    margin-top: 0.5rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.alert {
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.82rem;
    line-height: 1.5;
    border-left: 3px solid;
}

.alert-error {
    background: rgba(224, 112, 112, 0.08);
    border-color: var(--error);
    color: #f0a0a0;
}

.alert-success {
    background: rgba(127, 201, 127, 0.08);
    border-color: var(--success);
    color: #b0e0b0;
}

.alert-info {
    background: rgba(201, 168, 76, 0.08);
    border-color: var(--gold);
    color: var(--gold-light);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--gold-light);
}

.password-hint {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* PASSWORD TOGGLE — текстова версия */
.password-wrap {
    position: relative;
}

.password-wrap input[type="password"],
.password-wrap input[type="text"] {
    padding-right: 5rem !important;
}

.password-toggle-text {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    transition: color 0.2s;
}

.password-toggle-text:hover {
    color: var(--gold-light);
}

@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.5rem; }
    .auth-logo h1 { font-size: 2rem; }
}