/* Shared styles for signup / login / forgot-password / reset-password */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: #080a0d;
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(28, 31, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 44px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.auth-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.8);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auth-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 10px;
}

.auth-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    margin-bottom: 28px;
    line-height: 1.55;
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.field input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
}

.auth-submit {
    width: 100%;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: filter 0.15s, transform 0.15s;
}

.auth-submit:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-alt {
    margin-top: 22px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.auth-alt a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.auth-alt a:hover { text-decoration: underline; }

.auth-alt-small {
    margin-top: 12px;
    text-align: center;
    font-size: 0.78rem;
}

.auth-alt-small a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.auth-alt-small a:hover {
    color: var(--gold);
}

.auth-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    display: none;
    border: 1px solid;
    line-height: 1.5;
}

.auth-msg.error {
    background: rgba(220, 80, 80, 0.08);
    border-color: rgba(220, 80, 80, 0.3);
    color: #f08888;
}

.auth-msg.success {
    background: rgba(120, 200, 120, 0.08);
    border-color: rgba(120, 200, 120, 0.3);
    color: #88d888;
}

.hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
}

/* ─── Logo above auth card ─────────────────────────────────────────── */
.auth-logo-link {
    display: block;
    margin-bottom: 24px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.auth-logo {
    display: inline-block;
    max-width: 280px;
    width: 75%;
    height: auto;
    transition: opacity 0.2s ease;
}
.auth-logo-link:hover .auth-logo { opacity: 0.85; }

/* ─── Mobile responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
    /* Reduce side padding inside the card so form fields use more width */
    .auth-card {
        padding: 32px 22px;
        border-radius: 12px;
    }
    .auth-title { font-size: 2.0rem; }
    .auth-sub { font-size: 0.85rem; margin-bottom: 22px; }

    /* Logo smaller on phones */
    .auth-logo { max-width: 220px; }

    /* Form fields — taller for easier tapping */
    .field input,
    .field button,
    .auth-card button {
        font-size: 16px;  /* prevents iOS auto-zoom on input focus */
        min-height: 44px; /* Apple HIG / WCAG tap target minimum */
    }
}

@media (max-width: 380px) {
    .auth-card { padding: 28px 18px; }
    .auth-title { font-size: 1.7rem; }
}
