/* auth.css – solo para login y registro */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.auth-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1d4ed8 0, #020617 55%, #020617 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
}

/* Contenedor centrado */
.auth-shell {
    width: 100%;
    max-width: 960px;
    padding: 24px 16px;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 26px;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    padding: 26px 28px 24px;
}

/* Lado izquierdo (texto marketing) */
.auth-info h1 {
    font-size: 1.8rem;
    margin: 0 0 4px 0;
    color: #f9fafb;
}

.auth-info p {
    margin: 0 0 16px 0;
    color: #9ca3af;
    font-size: 0.95rem;
}

.auth-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: #e5e7eb;
}

.auth-info li i {
    color: #fbbf24;
}

/* Lado derecho (formulario) */
.auth-box {
    background: radial-gradient(circle at top left, #020617, #020617);
    border-radius: 18px;
    padding: 18px 20px 20px;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.auth-box h2 {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    color: #f9fafb;
}

.auth-subtitle {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Formulario */
.auth-form {
    margin-top: 4px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #020617;
    padding: 9px 11px;
    font-size: 0.93rem;
    color: #e5e7eb;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
    background: #020617;
}

/* Password con icono ojo */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

/* Footer formulario */
.form-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 10px;
    font-size: 0.85rem;
}

.check-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.check-inline input {
    width: 15px;
    height: 15px;
}

.link-small {
    color: #93c5fd;
    text-decoration: none;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #f59e0b;
    color: #111827;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.btn-full {
    width: 100%;
    border-radius: 999px;
    padding: 10px 0;
    margin-top: 4px;
}

.auth-alt {
    margin-top: 12px;
    text-align: center;
    font-size: 0.88rem;
    color: #9ca3af;
}

.auth-alt a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
}

.auth-alt a:hover {
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 9px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: rgba(248,113,113,0.12);
    border: 1px solid #f87171;
    color: #fecaca;
}

.alert-success {
    background: rgba(22,163,74,0.12);
    border: 1px solid #22c55e;
    color: #bbf7d0;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
        padding: 20px 18px 22px;
        border-radius: 0;
    }
    .auth-shell {
        max-width: 100%;
        padding: 0;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
