/* assets/css/auth.css */
.auth-body { background: var(--fondo); min-height: 100vh; }

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 100vh;
}

.auth-brand {
    background: linear-gradient(145deg, var(--verde) 0%, #2d6b52 60%, #1a3d2e 100%);
    color: white;
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 48px;
    display: block;
}

.auth-brand h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
}

.auth-brand p { opacity: .8; font-size: 16px; margin-bottom: 40px; }

.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-features div {
    background: rgba(255,255,255,.1);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.1);
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--verde);
    margin-bottom: 8px;
}
.auth-sub { color: var(--gris); font-size: 15px; margin-bottom: 28px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }
.pass-toggle {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 16px;
}

.form-check-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.check-label { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--gris); cursor: pointer; }
.check-label input { margin-top: 2px; flex-shrink: 0; accent-color: var(--verde); }
.check-label a { color: var(--verde); font-weight: 600; }
.link-sm { font-size: 13px; color: var(--terra); font-weight: 600; white-space: nowrap; }

.btn-lg { padding: 15px 32px; font-size: 16px; }

.auth-divider {
    text-align: center;
    color: var(--gris);
    font-size: 14px;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%; width: 35%;
    height: 1px; background: #e5e7eb;
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-back { text-align: center; margin-top: 16px; }
.auth-back a { font-size: 14px; color: var(--gris); }
.auth-back a:hover { color: var(--verde); }

.req { color: var(--terra); }
.hint { font-size: 12px; color: var(--gris); font-weight: 400; }

@media (max-width: 768px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-card { padding: 32px 24px; }
}
