/* Body and general container */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f8ff;
    margin: 0;
    padding: 0;
}

.login-container {
    width: 400px;
    margin: 60px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Heading */
h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e3a8a;  /* Deep blue like registration page */
    font-size: 24px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1e40af;  /* Blue color like registration page */
    font-size: 14px;
}

/* Input fields */
.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
    font-size: 14px;
    transition: 0.3s ease;
}

/* Input focus state */
.form-group input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.4);
}

/* CAPTCHA image styling */
.form-group img {
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

/* Captcha container */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

#custom-refresh {
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    color: #2563eb;
    transition: transform 0.3s ease;
}

#custom-refresh:hover {
    transform: rotate(90deg);
}

/* Forgot Password Link Styles */
.forgot-password {
    text-align: center;
    margin: -5px 0 15px 0;
}

.forgot-password a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Error messages - RED only */
.error-text {
    color: #dc2626 !important;  /* Bright red */
    font-size: 13px;
    margin-top: 5px;
    font-weight: normal;
}

.error-text ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: #dc2626 !important;
}

.error-text li {
    color: #dc2626 !important;
    list-style: none;
}

/* Login button - Centered with hover and focus effects */
.login-btn {
    width: 50%;
    max-width: 200px;
    min-width: 150px;
    padding: 12px 24px;
    background-color: #2563eb;  /* Default blue color */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    
    /* Centering the button */
    display: block;
    margin: 30px auto 10px auto;  /* auto on left/right centers it */
    
    /* Smooth transition for all effects */
    transition: all 0.3s ease;
    
    /* Optional: Add a subtle shadow */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover effect - when mouse moves over button */
.login-btn:hover {
    background-color: #1d4ed8;  /* Darker blue on hover */
    transform: translateY(-2px);  /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Bigger shadow on hover */
}

/* Focus effect - when button is selected with tab key */
.login-btn:focus {
    outline: none;  /* Remove default outline */
    background-color: #1e40af;  /* Even darker blue on focus */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);  /* Glow effect */
}

/* Active effect - when button is being clicked */
.login-btn:active {
    transform: translateY(0);  /* Reset lift effect */
    background-color: #1e3a8a;  /* Darkest blue when clicked */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Reset shadow */
}
  
/* Register link */
.register-link {
    text-align: center;
    margin-top: 15px;
    color: #4b5563;
    font-size: 14px;
}

.register-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Disable browser validation styling */
input:valid,
input:invalid {
    border-color: #cbd5e1 !important;
    background-image: none !important;
}

/* Hide any browser validation bubbles */
input::-webkit-validation-bubble {
    display: none !important;
}

/* Remove all pseudo-elements */
input::after,
input::before,
.form-group::after,
.form-group::before {
    display: none !important;
    content: none !important;
}