:root {
    --auth-primary: #d65a16;
    --auth-primary-dark: #b9480d;
    --auth-card-bg: rgba(255, 255, 255, 0.96);
    --auth-text: #2d3138;
    --auth-muted: #7b8494;
    --auth-border: #f1c4aa;
    --auth-shadow: 0 24px 60px rgba(73, 23, 4, 0.18);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--auth-text);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 161, 110, 0.16), transparent 18%),
        radial-gradient(circle at 82% 70%, rgba(255, 140, 80, 0.12), transparent 20%),
        linear-gradient(145deg, #b94909 0%, #cf5a12 35%, #c84f0f 100%);
    overflow: hidden;
    position: relative;
}

/* Comentario: manchas decorativas para dar profundidad al fondo */
.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 175, 128, 0.08);
    filter: blur(6px);
}

.auth-page::before {
    width: 42rem;
    height: 8rem;
    transform: rotate(-32deg);
    left: -6rem;
    top: 30%;
}

.auth-page::after {
    width: 22rem;
    height: 22rem;
    right: -6rem;
    bottom: -3rem;
}

.auth-card-wrap {
    width: 100%;
    max-width: 28rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--auth-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 1rem;
    box-shadow: var(--auth-shadow);
    padding: 1.6rem 1.35rem 1.25rem;
    backdrop-filter: blur(6px);
}

.auth-brand {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-brand img {
    max-width: 9.5rem;
    height: auto;
}

.auth-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.auth-form .form-control {
    border-radius: 0.8rem;
    border: 1px solid var(--auth-border);
    min-height: 2.9rem;
    box-shadow: none;
}

.auth-form .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.2rem rgba(214, 90, 22, 0.12);
}

.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 0.8rem;
    min-height: 3rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #ff7a2f 100%);
    box-shadow: 0 14px 28px rgba(214, 90, 22, 0.22);
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, var(--auth-primary-dark) 0%, var(--auth-primary) 100%);
    color: #fff;
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-links a {
    color: var(--auth-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-errors {
    margin-bottom: 1rem;
}

.auth-errors .alert {
    border-radius: 0.8rem;
    font-size: 0.9rem;
}

.field-error {
    margin-top: 0.3rem;
    color: #c2410c;
    font-size: 0.82rem;
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.25rem 1rem 1rem;
        border-radius: 0.9rem;
    }

    .auth-title {
        font-size: 1.18rem;
    }
}