/* Login Error and Success Message Styling */

/* Error message styling */
#login-error-message {
    margin: 16px 0;
    color: #c33;
    font-size: 14px;
    line-height: 1.4;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

#login-error-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Success message styling */
#login-success-message {
    background: #efe;
    border: 1px solid #cfc;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #363;
    font-size: 14px;
    line-height: 1.4;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

#login-success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#login-success-message::before {
    content: "✅ ";
    margin-right: 8px;
}

/* Input field error state */
.user-email-field.error {
    border-color: #fcc !important;
    box-shadow: 0 0 0 2px rgba(255, 204, 204, 0.3) !important;
}

/* Loading state for button */
.submit-button-2.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    color: transparent;
}

.submit-button-2.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    #login-error-message,
    #login-success-message {
        margin: 12px 0;
        padding: 10px 14px;
        font-size: 13px;
    }
} 