/**
 * OBRESEC Login Styles
 * Extracted from template for better organization
 */

/* Error message animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login error message styles */
.login-error-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(238, 90, 90, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    animation: slideInFromTop 0.4s ease-out;
}

.login-error-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 90, 0.4);
    transition: all 0.3s ease;
}

.captcha-error {
    background: linear-gradient(135deg, #ffa726, #ff9800) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
}

.captcha-error:hover {
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4) !important;
}

/* Error message content */
.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.error-text {
    flex: 1;
    line-height: 1.4;
}

.error-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.error-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.error-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 0 0 8px 8px;
}

/* CAPTCHA specific styles */
.captcha-group {
    margin: 0;
}

.captcha-container {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-refresh-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.captcha-refresh-btn:hover {
    background: #005a8b;
}

.captcha-refresh-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.captcha-refresh-btn.refreshing {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#captcha-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    transition: border-color 0.2s ease;
}

#captcha-image:hover {
    border-color: #007cba;
}

.captcha-input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.captcha-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}