/* Custom Login Form Styles */
.custom-login-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.custom-login-form {
    width: 100%;
}

.custom-login-form .form-group {
    margin-bottom: 24px;
}

.custom-login-form label {
    display: block;
    font-size: 16px;
    color: #2b2b2b;
}

.custom-login-form .required {
    color: #dc3545;
}

.custom-login-form .form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #898989;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-login-form .form-control:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Password wrapper with toggle icon */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2271b1;
}

.toggle-password.active {
    color: #2271b1;
}

/* hCaptcha wrapper */
.hcaptcha-wrapper {
    margin: 0px!important;
}
.form-group.hcaptcha-wrapper {
    margin-bottom: 0!important;
    
}

.hcaptcha-wrapper .h-captcha{ margin-bottom: 0px; margin-top: 2rem;}

/* Login button with loader */
.login-button {
    padding: 18px 40px;
    background-color: #0d47a1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.login-button:hover:not(:disabled) {
    background-color: #0d47a1;
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-button .button-text,
.login-button .button-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner animation */
.spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}

.spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Remember me checkbox */
.remember-me {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

/* Login message */
.login-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.login-message.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.login-message .success-icon,
.login-message .error-icon {
    font-weight: bold;
    font-size: 16px;
}

/* Login links */
.login-links {
    margin-top: 20px;
    text-align: left;
    font-size: 16px;
    margin-bottom: 24px;
}

.lost-password-link {
    color: #007eb6;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
     font-size: 16px;
}

.lost-password-link:hover {
    text-decoration: underline;
}

.register-link-wrapper {
    color: #2b2b2b;
    font-size: 16px;
}

.register-link {
    color: #007eb6;
    text-decoration: none;
    font-size: 16px;
}

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

/* Login info for logged-in users */
.login-info {
    padding: 15px;
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    border-radius: 4px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .custom-login-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
