/* ========================================
   AUTH PAGES
======================================== */
.auth-container {
    max-width: 420px;
    margin: 5rem auto;
    background: var(--color-surface);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.auth-container h1 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.auth-container input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

.auth-container input:focus {
    border-color: var(--color-primary);
}

.auth-container input::placeholder {
    color: var(--color-text-dim);
}

.auth-container button {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.auth-container button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.auth-container a {
    display: block;
    margin-top: 1.1rem;
    text-align: center;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.auth-container a:hover { color: var(--color-primary); }

.error-msg {
    color: var(--color-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.success-msg {
    color: var(--color-green);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.info-msg {
    color: var(--color-text-dim);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ========================================
   AUTH LAYOUT (nuevo diseño)
======================================== */
.auth-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-bg);
    background-image: radial-gradient(circle, rgba(15,41,82,0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    padding: 7rem 1.5rem 3rem;
}

.auth-wrap {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--color-text);
}

.auth-brand__name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-card {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.45s ease both;
}

.auth-card__header {
    margin-bottom: 1.75rem;
}

.auth-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-text);
}

.auth-card__subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
    line-height: 1.5;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.auth-footer-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 1.25rem;
}

.auth-footer-link a {
    color: var(--color-sky);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.auth-footer-link a:hover { opacity: 0.75; }

