/* css/acceso.css — Login y registro (páginas sin navegación) */

/* ── Centrado vertical del formulario en layout-standalone ───────────────── */
.layout-standalone {
    display: flex;
    flex-direction: column;
}

.layout-standalone .layout-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    width: 100%;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo img {
    max-width: 220px;
}

/* ── Contenedores de login y registro ────────────────────────────────────── */
.login-container,
.register-container {
    background: var(--fondo-card);
    padding: 2rem 2.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 440px;
}

.login-container h1,
.register-container h1 {
    text-align: center;
    margin-bottom: 0.625rem;
    color: var(--texto-principal);
    font-size: var(--texto-xl);
    font-weight: 400;
}

.subtitle {
    text-align: center;
    margin-bottom: 1.875rem;
    color: var(--texto-secundario);
    font-size: var(--texto-xs);
}

/* ── Formularios ─────────────────────────────────────────────────────────── */
.login-form,
.register-form {
    width: 100%;
}

.login-form > button[type="submit"],
.register-form > button[type="submit"] {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}

/* ── Turnstile ───────────────────────────────────────────────────────────── */
.cf-turnstile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ── Checkbox personalizado (registro) ───────────────────────────────────── */
.checkbox-group {
    margin: 1.25rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: var(--texto-xs);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--color-marca);
    border-color: var(--color-marca);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: #fff;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label a {
    color: var(--color-marca);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ── Enlaces registro / acceso ───────────────────────────────────────────── */
.login-link,
.register-link {
    text-align: center;
    margin-top: 1.25rem;
}

.login-link p,
.register-link p {
    color: var(--texto-secundario);
    font-size: var(--texto-xs);
    margin: 0.25rem 0;
}

.login-link a,
.register-link a {
    color: var(--color-marca);
    text-decoration: none;
    font-weight: 400;
}

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

/* ── Indicador coincidencia de contraseñas (nuevo-password.php) ──────────── */
.password-match  { margin-top: 0.5rem; font-size: var(--texto-xs); }
.match-success   { color: #198754; font-weight: 400; }
.match-error     { color: #dc3545; font-weight: 400; }

@media (max-width: 480px) {
    .login-container,
    .register-container {
        padding: 1.5rem 1.25rem;
    }

    .login-container h1,
    .register-container h1 {
        font-size: var(--texto-lg);
    }
}
