/* Email Validation Styling - Company Email Only */

/* Email input with warning styling */
#email {
    transition: all 0.3s ease;
}

#email:invalid {
    border-color: #dc3545 !important;
    background-color: #ffe6e6 !important;
}

#email:valid {
    border-color: #28a745 !important;
}

#email:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Error message styling */
.error-message {
    font-weight: 500;
    padding: 8px 12px;
    background: #ffe6e6;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    margin-top: 8px;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Warning text styling */
input[type="email"] + span {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Success state */
#email.success {
    border-color: #28a745 !important;
    background-color: #e8f5e9 !important;
}

/* Field error class */
.field-error {
    border-color: #dc3545 !important;
    background-color: #ffe6e6 !important;
}

/* Notification styling for blocked emails */
.notification.error {
    background: #dc3545;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
