/* Estilos para formularios de autenticación con nuevas fuentes */

/* Contenedor principal */
.container {
    font-family: var(--font-primary);
}

/* Cards de autenticación */
.card {
    font-family: var(--font-secondary);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-body {
    padding: 2rem;
}

/* Títulos de formularios */
.card h2 {
    font-family: var(--font-primary);
    font-weight: var(--font-bold);
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

/* Labels de formularios */
.form-group label {
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Inputs de formularios */
.form-control {
    font-family: var(--font-secondary);
    font-weight: var(--font-regular);
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.15);
    background: #ffffff;
    transform: translateY(-1px);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.3rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.3rem rgba(40, 167, 69, 0.15);
}

/* Botones de autenticación */
.btn-primary {
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.25);
}

.btn-block {
    width: 100%;
}

/* Botones secundarios */
.btn-outline-secondary {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    border-radius: 8px;
    border: 2px solid #6c757d;
    color: #6c757d;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

/* Enlaces de autenticación */
.card a {
    font-family: var(--font-secondary);
    font-weight: var(--font-medium);
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Alertas de autenticación */
.alert {
    font-family: var(--font-secondary);
    font-weight: var(--font-medium);
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Input groups */
.input-group {
    border-radius: 12px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.input-group-append .btn {
    border-radius: 0 12px 12px 0;
    border-left: none;
    background: #f8f9fa;
    color: #6c757d;
}

.input-group-append .btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Feedback de validación */
.invalid-feedback {
    font-family: var(--font-secondary);
    font-weight: var(--font-medium);
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.valid-feedback {
    font-family: var(--font-secondary);
    font-weight: var(--font-medium);
    font-size: 0.875rem;
    color: #28a745;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }

    .card h2 {
        font-size: 1.75rem;
    }

    .form-control {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .form-control {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 1.125rem 2rem;
    }
}

/* Estilos para elementos específicos de autenticación */
.form-row {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem !important;
}

.d-flex {
    gap: 1rem;
}

@media (max-width: 768px) {
    .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}
