html,
body.login-page {
    min-height: 100%;
}

body.login-page {
    position: relative;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 173, 239, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.07), transparent 30%),
        linear-gradient(180deg, #f6f9fc 0%, #eef3f8 100%);
    color: #1f2937;
    overflow-x: hidden;
    overflow-y: auto;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../img/centro_r.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.1;
    filter: blur(10px) saturate(0.9);
    transform: scale(1.05);
    pointer-events: none;
    z-index: 0;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

@supports (min-height: 100dvh) {
    .login-shell {
        min-height: 100dvh;
    }
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1.25rem;
    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.08),
        0 8px 18px rgba(15, 23, 42, 0.05);
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.75rem;
}

.login-brand__logo {
    width: 86px;
    height: 86px;
    padding: 0.6rem;
    object-fit: contain;
    object-position: center 58%;
    flex: 0 0 auto;
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(36, 87, 184, 0.16), transparent 48%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 255, 0.98) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(36, 87, 184, 0.09),
        0 14px 28px rgba(36, 87, 184, 0.12);
    filter: saturate(1.05) contrast(1.03);
}

.login-brand__name {
    font-size: 1.46rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.035em;
}

.login-brand__name span {
    display: none;
}

.login-brand__caption {
    margin-top: 0.18rem;
    font-size: 0;
    color: transparent;
}

.login-brand__caption::before {
    content: "Centros deportivos";
    color: #7b8798;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-header {
    margin-bottom: 1.5rem;
}

.login-title {
    margin: 0 0 0.35rem;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.login-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.45;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-alert {
    margin: 0;
    border-radius: 0.9rem;
    font-size: 0.95rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.login-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.login-input {
    height: 3rem;
    border-radius: 0.9rem;
    border: 1px solid #d7dee7;
    background: #fff;
    color: #0f172a;
    padding: 0.8rem 0.95rem;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-input::placeholder {
    color: #94a3b8;
}

.login-input:focus {
    border-color: rgba(0, 173, 239, 0.65);
    box-shadow: 0 0 0 0.22rem rgba(0, 173, 239, 0.14);
}

.login-password-wrap {
    position: relative;
}

.login-input--password {
    padding-right: 3rem;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.login-password-toggle:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #334155;
}

.login-password-toggle:focus-visible {
    outline: 2px solid rgba(0, 173, 239, 0.35);
    outline-offset: 2px;
}

.login-help {
    font-size: 0.83rem;
    margin-top: 0.1rem;
}

.login-help--warning {
    color: #b45309;
}

.login-submit {
    margin-top: 0.35rem;
    height: 3rem;
    border: 0;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #00adef 0%, #0d6efd 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.22);
    color: #fff;
}

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

.login-submit:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.login-footer {
    margin-top: 0.15rem;
    text-align: center;
}

.login-link {
    font-size: 0.88rem;
    color: #0d6efd;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-recovery-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    color: #475569;
    text-align: left;
    text-decoration: none;
    border-radius: 0.8rem;
    transition: color 0.16s ease, background 0.16s ease;
}

.login-recovery-link:hover {
    color: #0d6efd;
    text-decoration: none;
    background: rgba(13, 110, 253, 0.055);
}

.login-recovery-link:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.18);
    outline-offset: 2px;
}

.login-recovery-icon {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #0d6efd;
    font-size: 0.78rem;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 50%;
}

.login-recovery-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.05rem;
}

.login-recovery-copy strong {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-recovery-copy small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.25;
}

.login-recovery-arrow {
    color: #94a3b8;
    font-size: 0.66rem;
    transition: color 0.16s ease, transform 0.16s ease;
}

.login-recovery-link:hover .login-recovery-arrow {
    color: #0d6efd;
    transform: translateX(2px);
}

.login-register-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.8rem 0.85rem;
    color: #0f172a;
    text-align: left;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0, 173, 239, 0.1), rgba(13, 110, 253, 0.05));
    border: 1px solid rgba(13, 110, 253, 0.16);
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.08);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.login-register-link:hover {
    color: #0f172a;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0, 173, 239, 0.16), rgba(13, 110, 253, 0.08));
    border-color: rgba(13, 110, 253, 0.28);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.13);
    transform: translateY(-1px);
}

.login-register-link:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.2);
    outline-offset: 3px;
}

.login-register-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.52rem;
    color: #075985;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 999px;
}

.login-register-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.08rem;
}

.login-register-copy strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
}

.login-register-copy small {
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.25;
}

.login-register-arrow {
    display: inline-grid;
    width: 1.85rem;
    height: 1.85rem;
    place-items: center;
    color: #0d6efd;
    font-size: 0.75rem;
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 50%;
    transition: transform 0.16s ease;
}

.login-register-link:hover .login-register-arrow {
    transform: translateX(2px);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(1px);
    z-index: 1050;
}

@media (max-width: 575.98px) {
    .login-card {
        max-width: none;
        min-height: 100vh;
        padding: 1.5rem 1.2rem 1.25rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(10px);
    }

    @supports (min-height: 100dvh) {
        .login-card {
            min-height: 100dvh;
        }
    }

    .login-shell {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
    }

    .login-brand {
        margin-bottom: 1.35rem;
    }

    .login-brand__logo {
        width: 74px;
        height: 74px;
        padding: 0.5rem;
        border-radius: 1rem;
        object-position: center 58%;
    }

    .login-brand__name {
        font-size: 1.34rem;
    }

    .login-brand__caption::before {
        font-size: 0.62rem;
    }

    .login-title {
        font-size: 1.45rem;
    }

    .login-subtitle {
        font-size: 0.92rem;
    }
}
