/**
 * Zona Tech — Console Auth CSS
 * Estilos específicos para la vista de inicio de sesión y autenticación
 */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(16, 20, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),
                0 0 40px -10px rgba(224, 90, 54, 0.15);
    position: relative;
    z-index: 10;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.auth-card:hover {
    border-color: rgba(224, 90, 54, 0.3);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7),
                0 0 50px -5px rgba(224, 90, 54, 0.22);
}

.auth-logo-badge {
    height: 52px;
    width: 52px;
    border-radius: 16px;
    background: rgba(224, 90, 54, 0.12);
    border: 1px solid rgba(224, 90, 54, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e05a36;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-size: 1.625rem;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 0 20px rgba(224, 90, 54, 0.2);
}

.auth-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 1.625rem;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-align: center;
    margin: 0;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.375rem;
    margin-bottom: 2rem;
}

/* Campos de Entrada */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.auth-input {
    width: 100%;
    background-color: rgba(9, 11, 14, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f8fafc;
    padding: 0.8125rem 1rem 0.8125rem 2.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: #e05a36;
    box-shadow: 0 0 0 3px rgba(224, 90, 54, 0.2);
    background-color: rgba(9, 11, 14, 0.95);
}

.input-container:focus-within .input-icon {
    color: #e05a36;
}

.toggle-password-btn {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    width: 28px;
    height: 28px;
}

.toggle-password-btn svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.toggle-password-btn:hover {
    color: #f8fafc;
}

/* Alertas y Mensajes de Validación */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    animation: alertFadeIn 0.25s ease-out;
}

.auth-alert svg,
.alert-icon {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #86efac;
}

@keyframes alertFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón de Submit */
.auth-submit-btn {
    width: 100%;
    margin-top: 1.75rem;
    padding: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn svg,
.btn-arrow-icon {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.spinner-icon {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

/* Footer de Autenticación */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.auth-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.auth-footer-icon {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    color: #10b981;
    flex-shrink: 0;
    display: inline-block;
}

/* Modificador para la tarjeta de Registro */
.auth-card-register {
    max-width: 520px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 540px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

