    /* Define CSS variables for light mode (default) */
    :root {
    /* Primary colors */
    --primary-gradient-start: #2575fc;
    --primary-gradient-end: #6a11cb;

    /* Background colors */
    --bg-gradient-start: #f5f7fa;
    --bg-gradient-end: #c3cfe2;
    --bg-primary: white;
    --bg-header: rgba(255, 255, 255, 0.9);

    /* Text colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #888;

    /* Border and shadow colors */
    --border-color: #e0e0e0;
    --border-light: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --focus-shadow: rgba(37, 117, 252, 0.1);
    --button-shadow: rgba(37, 117, 252, 0.2);
    --button-hover-shadow: rgba(37, 117, 252, 0.3);

    /* Component specific */
    --toggle-bg: #e0e0e0;
    --toggle-handle: white;
    --input-bg: white;
    --floating-label-bg: white;

    /* Status colors */
    --error-color: #dc3545;
    --error-bg: rgba(220, 53, 69, 0.1);
    --error-border: rgba(220, 53, 69, 0.2);
    --success-color: #28a745;
    --success-bg: rgba(40, 167, 69, 0.1);
    --success-border: rgba(40, 167, 69, 0.2);
    }

    /* Dark mode theme */
    @media (prefers-color-scheme: dark) {
    :root {
    /* Primary colors - slightly adjusted for dark mode */
    --primary-gradient-start: #3585ff;
    --primary-gradient-end: #7a21db;

    /* Background colors */
    --bg-gradient-start: #0f0f1e;
    --bg-gradient-end: #2a2a3e;
    --bg-primary: #2a2a3e;
    --bg-header: rgba(30, 30, 46, 0.9);

    /* Text colors */
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    /* Border and shadow colors */
    --border-color: #404050;
    --border-light: #303040;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --focus-shadow: rgba(53, 133, 255, 0.2);
    --button-shadow: rgba(53, 133, 255, 0.3);
    --button-hover-shadow: rgba(53, 133, 255, 0.4);

    /* Component specific */
    --toggle-bg: #404050;
    --toggle-handle: #1e1e2e;
    --input-bg: #2a2a3e;
    --floating-label-bg: #2a2a3e;

    /* Status colors - adjusted for dark mode */
    --error-color: #ff6b7a;
    --error-bg: rgba(255, 107, 122, 0.1);
    --error-border: rgba(255, 107, 122, 0.2);
    --success-color: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.1);
    --success-border: rgba(74, 222, 128, 0.2);
    }
    }

    /* Apply the CSS variables throughout the styles */
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease;
    }



    .login-container {
    background-color: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .login-container::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gradient-end) 0%, var(--primary-gradient-start) 100%);
    opacity: 0.2;
    }

    .login-container::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    opacity: 0.2;
    }

    .login-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    }

    .form-group {
    margin-bottom: 24px;
    position: relative;
    }

    .pwdInput {
        margin-bottom: 0;
    }

    .form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-primary);
    padding-left: 45px;
    }

    .form-group input:focus {
    border-color: var(--primary-gradient-start);
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-shadow);
    }

    .form-group .floating-label {
    position: absolute;
    left: 45px;
    top: 16px;
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.25s ease;
    pointer-events: none;
    background-color: var(--floating-label-bg);
    padding: 0 5px;
    }

    .form-group input:not(:placeholder-shown) + .floating-label {
        top: -10px;
        left: 15px;
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 600;
    }

    .form-group input:focus + .floating-label {
        top: -10px;
        left: 15px;
        font-size: 12px;
        color: var(--primary-gradient-start) !important;
        font-weight: 600;
    }

    .form-group:focus-within .floating-label {
        color: var(--primary-gradient-start);
        opacity: 1;
    }

   
    /* Identifier help label styles */
    .identifier-help {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 4px;
        margin-bottom: 8px;
        line-height: 1.4;
        font-style: italic;
        opacity: 0.8;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

    /* Add bottom margin to the form group with identifier help to maintain spacing */
    .form-group.has-help {
        margin-bottom: 32px;
    }

    /* Fix icon positioning for form groups with help text */
    .form-group.has-help .input-icon {
        top: calc(50% - 12px); /* Adjust for the help text space */
    }

    /* Optional: Add a subtle animation on focus */
    .form-group:focus-within .identifier-help {
        color: var(--primary-gradient-start);
        opacity: 1;
    }

    /* Responsive adjustments */
    @media (max-width: 480px) {
        .identifier-help {
            font-size: 0.7rem;
            margin-top: 3px;
            margin-bottom: 6px;
        }
        
        .form-group.has-help {
            margin-bottom: 28px;
        }
        
        .form-group.has-help .input-icon {
            top: calc(50% - 10px);
        }
    }

    .form-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    }

    /* Toggle switch styles */
    .toggle-container {
    display: flex;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 24px;
    margin-left: 8px;
    }

    .toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    margin-right: 8px;
    }

    .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    }

    .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--toggle-bg);
    transition: .4s;
    border-radius: 34px;
    }

    .toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: var(--toggle-handle);
    transition: .4s;
    border-radius: 50%;
    }

    input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    }

    input:checked + .toggle-slider:before {
    transform: translateX(16px);
    }

    .toggle-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    }

    .signin-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px var(--button-shadow);
    position: relative;
    overflow: hidden;
    }

    .signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--button-hover-shadow);
    }

    .signin-btn:active {
    transform: translateY(1px);
    }

    .signin-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease-in-out;
    }

    .signin-btn:hover:before {
    left: 100%;
    }

    .links-container {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
    }

    .links-container span {
    color: var(--primary-gradient-start);
    text-decoration: none;
    margin: 5px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    }

    .links-container span:hover {
    color: var(--primary-gradient-end);
    transform: translateY(-1px);
    }

    .signup-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    }

    .signup-link span {
    color: var(--text-secondary);
    }

    .signup-link a {
    color: var(--primary-gradient-start);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s ease;
    }

    .signup-link a:hover {
    color: var(--primary-gradient-end);
    }

    @media (max-width: 480px) {
    .login-container {
    padding: 30px 20px;
    }

    .links-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    }

    .form-group input {
    font-size: 14px;
    }

    .form-group .floating-label {
    font-size: 14px;
    }

    .form-group .floating-label.invalid {
    font-size: 12px;
    }
    }

    /* Form validation styles */
    .form-group input.is-invalid {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    transition: all 0.3s ease;
    }

    .inputSignin.is-invalid {
    border-color: var(--error-color) !important;
    }

    .invalid {
    color: var(--error-color) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    }

    /* Button loading state */
    .signin-btn.processing {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    }

    .signin-btn.processing::after {
    content: "";
    position: absolute;
    top: calc(50% - 0.5em);
    left: calc(50% - 0.5em);
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
    }

    @keyframes button-loading-spinner {
    from {
    transform: rotate(0turn);
    }
    to {
    transform: rotate(1turn);
    }
    }

    /* Error and success message animations */
    @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
    }

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

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

    .shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    }

    /* Error and success message styling */
    .alert-danger {
    background-color: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-color);
    padding: 12px 16px;
    }

    .alert-success {
    background-color: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-color);
    padding: 12px 16px;
    }

    /* Animations */
    @keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(20px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
    }

    @keyframes fadeInLeft {
    from {
    opacity: 0;
    transform: translateX(-20px);
    }
    to {
    opacity: 1;
    transform: translateX(0);
    }
    }

    @keyframes fadeInRight {
    from {
    opacity: 0;
    transform: translateX(20px);
    }
    to {
    opacity: 1;
    transform: translateX(0);
    }
    }

    @keyframes scaleIn {
    from {
    opacity: 0;
    transform: scale(0.9);
    }
    to {
    opacity: 1;
    transform: scale(1);
    }
    }

    .header {
    animation: fadeInDown 0.6s ease-out forwards;
    }

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

    .login-container {
    animation: scaleIn 0.7s ease-out 0.2s both;
    }

    .login-title {
    animation: fadeInUp 0.5s ease-out 0.4s both;
    }

    .form-group:nth-of-type(1) {
    animation: fadeInLeft 0.5s ease-out 0.6s both;
    }

    .form-group:nth-of-type(2) {
    animation: fadeInLeft 0.5s ease-out 0.8s both;
    }

    .signin-btn {
    animation: fadeInUp 0.5s ease-out 1s both;
    }

    .links-container {
    animation: fadeInUp 0.5s ease-out 1.2s both;
    }

    .signup-link {
    animation: fadeInUp 0.5s ease-out 1.4s both;
    }

    /* Hide elements before animation starts */
    .login-title, .form-group, .signin-btn, .links-container, .signup-link {
    opacity: 0;
    }

    /* Animated gradient background */
    body {
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    }

    @keyframes gradientBG {
    0% {
    background-position: 0% 50%;
    }
    50% {
    background-position: 100% 50%;
    }
    100% {
    background-position: 0% 50%;
    }
    }