/* ========================================
   PÁGINAS DE AUTENTICACIÓN - PORTAFOLIO
   ======================================== */
/* Cuerpo para páginas de autenticación */
.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--color-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor Principal */
.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

/* Encabezado */
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    /* Reducido de 2rem para acercar el bloque */
    padding: 0 0.5rem;
    /* Alineación visual con la tarjeta */
}

.logo-auth {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.logo-bracket {
    color: #6366f1;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-home:hover {
    color: #ffffff;
}

.back-home svg {
    width: 20px;
    height: 20px;
}

/* Tarjeta */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    /* Solicitud usuario: vista al 90% */
    transform-origin: center center;
}

.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
}

.auth-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0 0 2rem 0;
}

/* Formulario */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #1a202c;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Contenedor de Contraseña */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #718096;
}

.password-toggle .eye-icon {
    width: 20px;
    height: 20px;
}

/* Opciones del Formulario (Recordar + Olvidó) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1a202c;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6366f1;
}

.link {
    font-size: 0.9rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #b7791f;
    text-decoration: underline;
}

/* Botones */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    border: none;
}

.btn-primary {
    width: 100%;
    color: #ffffff;
    background: #6366f1;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-google {
    width: 100%;
    color: #1a202c;
    background: #ffffff;
    border: 2px solid #e2e8f0;
}

.btn-google:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.btn-block {
    width: 100%;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #a0aec0;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 0.75rem;
}

/* Pie de Página de Autenticación */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #718096;
}

.link-primary {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.link-accent {
    color: #d69e2e;
    font-weight: 500;
    text-decoration: none;
}

.link-accent:hover {
    color: #b7791f;
    text-decoration: underline;
}

/* Reenviar Verificación */
.resend-verification {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.text-muted {
    font-size: 0.85rem;
    color: #718096;
    margin: 0 0 0.5rem 0;
}

/* Mensajes del Formulario */
.form-message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: none;
}

.form-message.error {
    display: block;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.form-message.success {
    display: block;
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

/* ========================================
   ESTILOS DEL PANEL DE CONTROL
   ======================================== */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #e3e4e6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: #1a202c;
    font-weight: 600;
}

.btn-logout {
    width: 100%;
    margin-top: 1rem;
    background: #ef4444;
}

.btn-logout:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsivo */
@media (max-width: 640px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}