/* ===================================
   AUTH FORMS - ESTILOS REUTILIZABLES
   =================================== */

/* Inputs */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #111827;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.input-field:hover {
    border-color: #60a5fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-readonly {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.input-readonly:hover {
    border-color: #d1d5db;
    box-shadow: none;
}

.input-field.error {
    border-color: #ef4444;
}

.input-field.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Labels */
.label-field {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.label-icon {
    color: #2563eb;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

/* Help Text */
.help-text {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Inter', sans-serif;
}

/* Error Messages */
.error-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
    font-family: 'Inter', sans-serif;
}

.error-icon {
    margin-right: 0.25rem;
}

/* Alert Boxes */
.alert-box {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
    font-family: 'Inter', sans-serif;
}

.alert-error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
}

.alert-error-title {
    font-weight: 600;
    color: #991b1b;
    font-size: 0.875rem;
}

.alert-error-icon {
    color: #ef4444;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.alert-error-item {
    color: #7f1d1d;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.alert-success {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
}

.alert-success-icon {
    color: #22c55e;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.alert-success-text {
    color: #166534;
    font-size: 0.875rem;
}

/* Info Box */
.info-box {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
    font-family: 'Inter', sans-serif;
}

.info-box-icon {
    color: #2563eb;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.info-box-text {
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Warning Box */
.warning-box {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
    font-family: 'Inter', sans-serif;
}

.warning-box-icon {
    color: #b45309;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.warning-box-text {
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Checkbox */
.checkbox-field {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    accent-color: #2563eb;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-field:hover {
    transform: scale(1.1);
    border-color: #3b82f6;
}

.checkbox-field:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-field:invalid {
    border-color: #d1d5db;
    box-shadow: none;
}

.checkbox-field:focus:invalid {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-label {
    font-size: 0.8125rem;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.checkbox-label:hover {
    color: #1f2937;
}

.checkbox-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.checkbox-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-secondary {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    background-color: white;
    color: #374151;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Password Strength Indicator */
.password-strength {
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s;
    border-radius: 9999px;
}

.strength-weak {
    background-color: #ef4444;
    width: 33%;
}

.strength-fair {
    background-color: #f59e0b;
    width: 66%;
}

.strength-strong {
    background-color: #22c55e;
    width: 100%;
}

.strength-text {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.strength-weak-text {
    color: #dc2626;
}

.strength-fair-text {
    color: #d97706;
}

.strength-strong-text {
    color: #16a34a;
}

/* Divider */
.divider-section {
    position: relative;
    padding: 1.5rem 0;
}

.divider-line {
    width: 100%;
    border-top: 1px solid #e5e7eb;
    position: absolute;
    top: 50%;
    left: 0;
}

.divider-text {
    position: relative;
    background: white;
    padding: 0 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* Form Layout */
.form-group {
    display: grid;
    gap: 1.25rem;
}

.form-group-large {
    display: grid;
    gap: 1.5rem;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideDown {
    animation: slideDown 0.3s ease-out;
}

/* Margin Utilities */
.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}
