/* ============================================================
   AUTH.CSS — Logowanie & Rejestracja
   Korzysta ze zmiennych z worldcup.css
   ============================================================ */

/* ── STRONA AUTH ─────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ── KARTA ───────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 36px 32px 32px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

/* Złoty blask w rogu */
.auth-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(212,175,55,.12) 0%,
        transparent 70%);
    pointer-events: none;
}

/* ── LOGO / NAGŁÓWEK ─────────────────────────────────────── */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 12px rgba(212,175,55,.5));
}

.auth-logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    background: linear-gradient(130deg, #ffffff 30%, #f0d87a 70%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Separator pod logo */
.auth-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212,175,55,.25),
        transparent
    );
    margin-bottom: 28px;
}

/* ── TYTUŁ ───────────────────────────────────────────────── */
.auth-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 26px;
    font-weight: 400;
}

/* ── ALERT BŁĘDU ─────────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.auth-alert--error {
    background: rgba(232,64,64,.10);
    border: 1px solid rgba(232,64,64,.25);
    color: #f87171;
}

.auth-alert--success {
    background: rgba(40,200,100,.10);
    border: 1px solid rgba(40,200,100,.25);
    color: #5de09a;
}

.auth-alert__icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ── FORMULARZ ──────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Wrapper pola z etykietą */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.auth-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-left: 2px;
}

/* Wrapper na input + ikonę */
.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: .45;
    pointer-events: none;
    line-height: 1;
}

.auth-input {
    width: 100%;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: var(--text-primary);
    padding: 0 16px 0 42px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: var(--text-muted);
    opacity: .7;
}

.auth-input:focus {
    border-color: rgba(212,175,55,.45);
    background: rgba(212,175,55,.05);
    box-shadow: 0 0 0 3px rgba(212,175,55,.10);
}

/* Stan błędu pola */
.auth-input.is-error {
    border-color: rgba(232,64,64,.45);
    background: rgba(232,64,64,.04);
}

.auth-input.is-error:focus {
    box-shadow: 0 0 0 3px rgba(232,64,64,.10);
}

/* Stan OK pola */
.auth-input.is-ok {
    border-color: rgba(40,200,100,.40);
}

/* Podpowiedź pod polem */
.auth-hint {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 2px;
    min-height: 16px;
    transition: color .2s;
}

.auth-hint.is-error { color: #f87171; }
.auth-hint.is-ok    { color: #5de09a; }

/* ── PASEK SIŁY HASŁA ────────────────────────────────────── */
.auth-strength {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-strength__bars {
    display: flex;
    gap: 4px;
}

.auth-strength__bar {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    transition: background .3s;
}

/* Poziomy siły */
.strength-1 .auth-strength__bar:nth-child(1)                          { background: #f87171; }
.strength-2 .auth-strength__bar:nth-child(-n+2)                       { background: #fbbf24; }
.strength-3 .auth-strength__bar:nth-child(-n+3)                       { background: #a3e635; }
.strength-4 .auth-strength__bar                                        { background: #5de09a; }

.auth-strength__label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color .3s;
}

.strength-1 .auth-strength__label { color: #f87171; }
.strength-2 .auth-strength__label { color: #fbbf24; }
.strength-3 .auth-strength__label { color: #a3e635; }
.strength-4 .auth-strength__label { color: #5de09a; }

/* ── PRZYCISK SUBMIT ─────────────────────────────────────── */
.auth-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #d4af37, #f0d87a);
    color: #111;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(212,175,55,.25);
    transition: filter .2s, transform .15s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.auth-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,.15) 0%,
        transparent 60%);
    pointer-events: none;
}

.auth-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(212,175,55,.35);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* ── LINK "Nie masz konta?" ──────────────────────────────── */
.auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--gold);
    font-weight: 600;
    transition: color .2s;
}

.auth-footer a:hover {
    color: var(--gold-light);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 24px;
    }

    .auth-title { font-size: 30px; }
}
