/**
 * Admin Authentication Styles
 * 
 * Minimal styles for authentication system - only error messages and essential functionality
 */

/* Error messages */
.form_error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

.form_error.blocked {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

/* Success messages */
.form_success {
    background: #e8f5e8;
    border: 1px solid #4CAF50;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

/* Input error states */
.popup_form_input_wrap input.error {
    border-color: #f44336 !important;
    background-color: #fff5f5 !important;
}

.popup_form_input_wrap input.error:focus {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

/* SMS code inputs */
.sms_code {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    direction: ltr;
}

.sms_code input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: all 0.2s ease;
}

.sms_code input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.sms_code input.error {
    border-color: #f44336 !important;
    background-color: #fff5f5 !important;
}

.sms_code input.error:focus {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

/* Timer for code expiration */
.timer {
    font-weight: 600;
    color: #ff9800;
    font-size: 16px;
}

/* Resend link */
.resend_code_link {
    display: none;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.resend_code_link:hover {
    text-decoration: underline;
}

/* Attempts information */
.attempts_left {
    background: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 12px;
    text-align: center;
}

.resend_info {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

/* Admin login submit buttons */
.admin-login_submit_button{
    padding: 1.335em 2.2em;
    margin: 2.2em auto 0;
}
.admin-login_submit_button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading state for admin login buttons */
.admin-login_submit_button:disabled::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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