/* Modern Auth Form Styles */

/* Processing Message */
.processing-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    max-width: 100%;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
    width: fit-content;
    max-width: 100%;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    width: fit-content;
    max-width: 100%;
}

/* Field Error */
.field-error {
    color: #e53e3e;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    padding: 8px 12px;
    background: rgba(229, 62, 62, 0.1);
    border-left: 3px solid #e53e3e;
    border-radius: 4px;
    animation: slideIn 0.3s ease-out;
    width: fit-content;
    max-width: 100%;
}

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

/* Form Validation States */
.has-error .form-control {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.has-error .form-control:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

/* Form Control Transitions */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

/* Button Transitions */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Message Container */
.msgs-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.msgs-container .processing-message,
.msgs-container .error-message,
.msgs-container .success-message {
    width: fit-content;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .processing-message,
    .error-message,
    .success-message,
    .field-error {
        width: 100%;
        max-width: 100%;
    }

    .msgs-container {
        justify-content: center;
    }
}
