
/* Modal Overlay and Content */
.auth-modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(23, 34, 74, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
}

.auth-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    display: flex;
    width: 90%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-modal-overlay.open .auth-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Left Panel */
.auth-left-panel {
    flex: 1;
    background: linear-gradient(145deg, #1a2653, #17224A);
    color: #ffffff !important;
    padding: 40px 30px;
    text-align: center;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-left-panel h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.auth-left-panel p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    padding: 0 15px;
    color: #ffffff !important;
}

.auth-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Right Panel */
.auth-right-panel {
    flex: 1.2;
    padding: 40px 30px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Add the 1px #ccc line on the left side */
    border-left: 1px solid #ccc;
}

/* Close Button */
.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: 300;
    color: #6c757d !important;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.auth-close:hover {
    color: #FF6200 !important;
    transform: scale(1.1);
    background: #f1f1f1;
}

/* Trigger Buttons */
.auth-trigger-btn,
.auth-logout-btn {
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px;
     padding: 6px 12px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.auth-btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.auth-trigger-btn {
    color: #ffffff !important;
}

.auth-trigger-btn:hover {
     font-weight: 400 !important;
     color: #4F46E5 !important;
     background-color: #ffffff !important;
}

.auth-logout-btn {
    color: #ffffff !important;
}

.auth-logout-btn:hover {
     font-weight: 400 !important;
     color: #CC0000 !important;
    background-color: #ffffff !important;
}

/* Toggle Buttons */
.auth-toggle-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 5px;
}

.auth-toggle-btn {
    flex: 1;
    margin: 0;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    color: #17224A !important;
    font-size: 14px;
    /* Smooth transition for active state */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.auth-toggle-btn.active {
    background: #ffffff;
    color: #00B4D8 !important;
    box-shadow: 0 3px 10px rgba(23, 34, 74, 0.1);
}

/* Forms */
.uam-form-group, .form-control {
    margin-bottom: 18px;
}

.uam-form-group label, .form-control label {
    font-weight: 600;
    font-size: 14px;
    color: #17224A !important;
    margin-bottom: 8px;
    display: block;
}

.uam-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    height: 48px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.uam-input-wrapper:focus-within {
    border-color: #00B4D8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.uam-input-wrapper input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100%;
    font-size: 15px;
    padding: 0 15px 0 45px;
    background: transparent;
    color: #17224A !important;
}

.uam-input-wrapper input::placeholder {
    color: #6c757d !important;
}

.uam-flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.uam-flex-row .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d !important;
    cursor: pointer;
    font-weight: 500;
}

.uam-flex-row a {
    font-size: 14px;
    color: #00B4D8 !important;
    text-decoration: none;
    font-weight: 600;
}
.uam-flex-row a:hover {
    text-decoration: underline;
}

.uam-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.uam-icon svg {
    width: 20px;
    height: 20px;
    stroke: #6c757d;
    transition: stroke 0.2s ease;
}

.uam-input-wrapper:focus-within .uam-icon svg {
    stroke: #00B4D8;
}

.uam-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Profile Picture Input - Select Button */
.uam-profile-pic-wrapper {
    margin-bottom: 18px;
}

.uam-profile-pic-dropzone {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    background: #f8f9fa;
}

.uam-profile-pic-dropzone:hover {
    border-color: #00B4D8;
    background-color: #f1f3f5;
}

.uam-profile-pic-dropzone .uam-dropzone-icon {
    padding: 0 15px;
}

.uam-profile-pic-dropzone .uam-dropzone-icon svg {
    width: 20px;
    height: 20px;
    stroke: #6c757d;
    transition: stroke 0.3s ease;
}

.uam-profile-pic-dropzone:hover .uam-dropzone-icon svg {
    stroke: #00B4D8;
}

.uam-dropzone-text {
    color: #6c757d !important;
    font-weight: 500;
    font-size: 15px;
}

#profile_pic {
    display: none; /* Hide the actual file input */
}

/* Submit Buttons */
.uam-login-btn, .uam-submit-btn {
    width: 100% !important;
    height: 50px !important;
    background: linear-gradient(145deg, #00c5ea, #00B4D8) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative;
}

.uam-login-btn:hover, .uam-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.3) !important;
    transform: translateY(-2px) !important;
}

.uam-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Google Sign-In */
/* Ensure the Google button container takes full width and centers the button */
.g_id_signin {
    width: 100% !important; /* Make the container take full width */
    display: flex !important; /* Use flexbox to center its content */
    justify-content: center !important; /* Center horizontally */
    align-items: center !important; /* Center vertically (if height allows) */
    margin-top: 20px !important;
    margin-bottom: 20px !important; /* Add some space around the button */
}

/* The actual Google button inside the container */
.g_id_signin > div {
    /* The GSI library applies inline styles, so !important might be needed for some overrides.
       However, for width and margin, it usually respects parent container. */
    width: 100% !important; /* Attempt to make the actual button full width if GSI allows */
    max-width: 280px !important; /* Keep a max-width to prevent it from becoming too wide on large screens */
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(23, 34, 74, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-sizing: border-box !important; /* Ensure padding/border don't cause overflow */
}

.g_id_signin > div:hover {
    box-shadow: 0 4px 10px rgba(23, 34, 74, 0.1) !important;
    transform: translateY(-2px);
}


/* Social Login Divider */
.uam-social-login-divider {
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    margin: 25px auto !important; /* Center the divider itself */
    width: 100% !important; /* Ensure it takes full width to apply lines */
    color: #6c757d !important;
    font-size: 14px !important;
}

.uam-social-login-divider::before,
.uam-social-login-divider::after {
    content: '' !important;
    flex: 1 !important;
    border-bottom: 1px solid #ccc !important; /* Use #ccc for the line color */
}

.uam-social-login-divider:not(:empty)::before {
    margin-right: .25em !important;
}

.uam-social-login-divider:not(:empty)::after {
    margin-left: .25em !important;
}

/* Style for the "OR" text inside the divider */
.uam-social-login-divider span {
    padding: 0 15px !important; /* Add padding around the "OR" text */
    white-space: nowrap !important; /* Prevent "OR" from wrapping */
}


/* Links */
.uam-signup-link, .uam-signin-link {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.uam-signup-link a, .uam-signin-link a {
    color: #00B4D8 !important;
    font-weight: 600;
    text-decoration: none;
}

/* Inline Errors */
.uam-inline-error {
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}

/* Custom SweetAlert Styles */
.uam-swal-modal {
    font-family: 'Nunito', sans-serif;
    border-radius: 15px !important;
    z-index: 99999 !important;
}
.uam-swal-modal .swal2-title {
    color: #17224A;
    font-weight: 700;
}
.uam-swal-modal .swal2-html-container {
    color: #495057;
}
.uam-swal-modal .swal2-confirm {
    background-color: #00B4D8 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.2) !important;
}
.uam-swal-modal .swal2-icon.swal2-success .swal2-success-line-tip,
.uam-swal-modal .swal2-icon.swal2-success .swal2-success-line-long {
    background-color: #28a745 !important;
}
.uam-swal-modal .swal2-icon.swal2-success .swal2-icon-content {
    border-color: #28a745 !important;
}
.uam-swal-modal .swal2-icon.swal2-error {
    border-color: #dc3545 !important;
}
.uam-swal-modal .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #dc3545 !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-overlay {
        align-items: center;
        padding: 20px 15px;
    }
    .auth-modal-content {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-height: 90vh;
        max-width: 400px;
        border-radius: 20px;
    }
    .auth-left-panel {
        display: flex;
        flex: 0 0 auto;
        min-width: 100%;
        padding: 30px 20px;
    }
    .auth-left-panel .auth-image {
        display: none;
    }
    .auth-right-panel {
        padding: 30px 20px;
        justify-content: center;
        border-left: none !important; /* Remove border on small screens */
        border-top: 1px solid #ccc !important; /* Add a top border instead */
    }
    .auth-close {
        color: #17224A !important;
    }
    .auth-toggle-buttons {
        margin-top: 0;
    }
    /* Hide auth-btn-text on mobile for auth-logout-btn and auth-trigger-btn */
    .auth-logout-btn .auth-btn-text,
    .auth-trigger-btn .auth-btn-text {
        display: none !important;
    }
    /* Adjust padding for buttons on mobile so icons are centered */
    .auth-logout-btn,
    .auth-trigger-btn {
        padding: 10px !important; /* Smaller padding to make it more square for just icon */
    }
}
/* Custom CSS for reCAPTCHA v2 centering */
.g-recaptcha {
    display: block; /* Ensure it's a block element */
    margin: 20px auto; /* Center horizontally with some vertical spacing */
    width: 304px; /* Standard reCAPTCHA v2 width */
}