:root {
    --auth-bg: #f6f2ea;
    --auth-bg-alt: #f4f7fb;
    --auth-surface: #ffffff;
    --auth-ink: #1f2a2e;
    --auth-muted: #5b6770;
    --auth-accent: #0f7c8a;
    --auth-accent-strong: #0a5f69;
    --auth-border: #e8e1d6;
    --auth-shadow: 0 24px 60px rgba(15, 28, 37, 0.14);
    --site-font-family: inherit;
}

body.auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    color: var(--auth-ink);
    font-family: var(--site-font-family);
}

.auth-wrap {
    width: min(1040px, 100%);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-page-header {
    display: flex;
    align-items: center;
}

.auth-page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--auth-muted);
    font-weight: 600;
}

.auth-page-link:hover {
    color: var(--auth-accent);
}

.auth-card {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: 0 auto;
    align-items: center;
    background: var(--auth-surface);
    border-radius: 24px;
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

.auth-info {
    position: relative;
    padding: 46px 48px;
    background: linear-gradient(145deg, var(--auth-accent-strong) 0%, var(--auth-accent) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.auth-info::before,
.auth-info::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-info::before {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -40px;
}

.auth-info::after {
    width: 140px;
    height: 140px;
    bottom: -50px;
    left: -30px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.auth-brand a {
    width: 35%;
    height: auto;
}

.auth-info h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.auth-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.auth-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--auth-accent);
    flex: 0 0 10px;
}

.auth-form {
    padding: 46px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-form h2 {
    margin: 0;
    font-size: 28px;
    color: var(--auth-ink);
}

.auth-form p {
    margin: 0;
    color: var(--auth-muted);
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.auth-alert-list {
    margin: 0;
    padding-left: 18px;
}

.auth-alert-list li {
    margin: 4px 0;
}

.auth-alert--error {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

.auth-alert--success {
    background: rgba(25, 135, 84, 0.12);
    color: #0f5132;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-recaptcha {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px;
}

@media (max-width: 420px) {
    .auth-recaptcha .g-recaptcha {
        transform: scale(0.92);
        transform-origin: center;
    }
}

.auth-field label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--auth-muted);
}

.auth-field input {
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.auth-field input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-row a {
    color: var(--auth-accent);
    font-weight: 500;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.auth-button {
    border: none;
    width: 100%;
    margin-top: 10px;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-strong) 100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

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

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-accent-strong);
    font-weight: 600;
}

.auth-page-footer {
    text-align: center;
    font-size: 12px;
    color: var(--auth-muted);
}

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-info {
        padding: 32px;
    }

    .auth-form {
        padding: 32px;
    }
}

@media (max-width: 600px) {
    body.auth-body {
        padding: 24px 12px;
    }

    .auth-info h1 {
        font-size: 26px;
    }

    .auth-form h2 {
        font-size: 24px;
    }
}

/* Grid principal del formulario */
.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1rem;
    /* filas / columnas */
}

/* Campos que deben ocupar todo el ancho */
.auth-field--full {
    grid-column: 1 / -1;
}

/* Inputs y selects */
.auth-field input,
.auth-field select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--color-border, #ddd);
    font-size: 0.95rem;
}

/* Labels */
.auth-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-field--full {
        grid-column: auto;
    }
}

.auth-field .auth-input-wrap {
    position: relative;
    width: 100%;
}

.auth-field .auth-input-wrap input {
    padding-right: 46px !important;
}

.auth-field .auth-input-wrap .auth-toggle {
    position: absolute !important;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 18px;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-field .auth-input-wrap .auth-toggle:hover {
    color: var(--auth-accent);
}
