* {
    box-sizing: border-box;
}

:root {
    --brand-950: #002f2a;
    --brand-900: #003d35;
    --brand-800: #005248;
    --brand-700: #066a5b;
    --brand-100: #dff2ee;
    --brand-50: #eff8f6;
    --gold-500: #edae49;
    --gold-400: #f4bd61;
    --ink-900: #10211f;
    --ink-500: #6d7e7b;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--ink-900);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(90deg, rgba(0, 47, 42, 0.97) 0%, rgba(0, 47, 42, 0.87) 42%, rgba(0, 47, 42, 0.42) 100%),
        var(--brand-950) url('/images/beach-tennis-hero.png') center / cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px;
}

.auth-card {
    width: min(100%, 450px);
    padding: 34px 36px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    color: var(--ink-900);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(0, 29, 25, 0.35);
    backdrop-filter: blur(12px);
}

.auth-brand {
    position: relative;
    width: min(100%, 300px);
    height: 148px;
    margin: -22px auto 22px;
    overflow: hidden;
}

.auth-brand-logo {
    position: absolute;
    top: -55px;
    left: 50%;
    width: 280px;
    height: 280px;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.24));
}

.titulo {
    position: relative;
    margin: 0 0 24px;
    color: var(--brand-900);
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.titulo::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 13px;
    border-radius: 999px;
    background: var(--gold-400);
}

.subtitulo {
    margin: -13px 0 24px;
    color: var(--ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.alerta {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.alerta.erro {
    color: #9d2c36;
    background: #fcecef;
    border-left: 4px solid #c74755;
}

.alerta.sucesso {
    color: #075f4f;
    background: #e6f5f1;
    border-left: 4px solid var(--brand-700);
}

label {
    display: block;
    margin-bottom: 7px;
    color: #334b47;
    font-size: 13px;
    font-weight: 750;
}

input {
    width: 100%;
    height: 48px;
    margin-bottom: 16px;
    padding: 0 14px;
    border: 1px solid #d8e3e1;
    border-radius: 10px;
    outline: none;
    color: var(--ink-900);
    background: white;
    font-size: 16px;
    font-weight: 600;
}

input:focus {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 3px rgba(6, 106, 91, 0.13);
}

button {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
    box-shadow: 0 12px 24px rgba(0, 82, 72, 0.2);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.link-secundario {
    display: block;
    margin-top: 18px;
    color: var(--brand-700);
    text-align: center;
    font-size: 13px;
    font-weight: 750;
}

.rodape {
    margin-top: 20px;
    color: #8a9996;
    text-align: center;
    font-size: 12px;
    font-weight: 650;
}

@media (max-width: 520px) {
    body {
        align-items: flex-start;
    }

    .auth-container {
        padding: 18px;
    }

    .auth-card {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .auth-brand {
        height: 132px;
        margin: -20px auto 18px;
    }

    .auth-brand-logo {
        top: -47px;
        width: 245px;
        height: 245px;
    }

    .titulo {
        font-size: 1.75rem;
    }
}
