* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Body styles */
body {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #3a80ff, #622aff);
    color: white;
    align-items: center;
    justify-content: center;
}

/* Container styles */
.container {
    display: flex;
    width: 80%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.781);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: black;
    position: relative; /* Ensure it stays above the video */
}

/* Background video styles */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Welcome section styles */
.welcome-section {
    flex: 1;
    background: linear-gradient(135deg, #3a7fffb0, #632affa9);
    color: rgb(12, 12, 12);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid white;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(77, 77, 77, 0.637); }
}

.welcome-section p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Get started button styles */
.get-started-link {
    display: flex; /* Change this from 'none' to 'flex' */
    justify-content: center;
    margin-top: 20px;
    text-decoration: none;
}



.cssbuttons-io-button {
    background: rgb(0, 95, 184);
    color: white;
    font-family: inherit;
    padding: 0.25em;
    padding-left: 0.9em;
    font-size: 18px;
    font-weight: 500;
    border-radius: 0.7em;
    border: none;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 2.4em;
    padding-right: 2.8em;
    cursor: pointer;
    margin: 0 auto; /* Center the button horizontally */
}


.cssbuttons-io-button .icon {
    background: white;
    margin-left: 0.8em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.8em;
    width: 1.8em;
    border-radius: 0.5em;
    box-shadow: 0.1em 0.1em 0.4em 0.1em #001d5a;
    right: 0.3em;
    transition: all 0.3s;
}

.cssbuttons-io-button:hover .icon {
    width: calc(100% - 0.5em);
}

.cssbuttons-io-button .icon svg {
    width: 0.9em;
    transition: transform 0.3s;
    color: #04068a;
}

.cssbuttons-io-button:hover .icon svg {
    transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
    transform: scale(0.95);
}
  
/* Login section styles */
.login-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Form styles */
.login-section form,
.signup-section form,
.forgot-password-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.login-section input[type="email"],
.login-section input[type="password"],
.signup-section input[type="email"],
.signup-section input[type="password"],
.signup-section input[type="text"],
.forgot-password-section input[type="email"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 2px solid #424242; /* Single line */
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: transparent;
    color: #181818;
}

.login-section input[type="email"]:focus,
.login-section input[type="password"]:focus,
.signup-section input[type="email"]:focus,
.signup-section input[type="password"]:focus,
.signup-section input[type="text"]:focus,
.forgot-password-section input[type="email"]:focus {
    border-color: #3a80ff;
    box-shadow: 0 2px 5px rgba(58, 128, 255, 0.5);
    outline: none;
    background-color: transparent;
}

/* Button styles */
.login-now {
    background: transparent;
    color: #3a80ff;
    border: 2px solid #3a80ff;
    border-radius: 6px;
    padding: 10px 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.login-now:hover {
    background: #3a80ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 128, 255, 0.2);
}

.login-now:active {
    transform: translateY(0);
}

.signup-now,
.back-to-login {
    color: white;
    border: none;
    border-radius: 20px; /* Round edges */
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.signup-now:hover,
.back-to-login:hover {
    transform: scale(1.05);
}

.back-to-login {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: lighter;
    color: #3b3b3b;
    background: rgba(0, 0, 0, 0.014);
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.445);
    text-decoration: none;
    margin-top: 10px;
}

.back-to-login:hover {
    transform: scale(1.05);
}

.back-to-login svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    stroke: currentColor;
}

/* Helper text styles */
.helper-text {
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

.helper-text a {
    color: #3a80ff;
    text-decoration: none;
    font-weight: bold;
}

.helper-text a:hover {
    text-decoration: underline;
}

/* Sign-up section styles */
.signup-section {
    display: none; /* Ensure this is set to none initially */
    flex: 1;
    padding: 40px;
    border-radius: 10px;
    color: black;
    flex-direction: column;
    justify-content: center;
}

.signup-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.signup-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center; /* Center the buttons */
}

.signup-section input[type="email"],
.signup-section input[type="password"],
.signup-section input[type="text"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 2px solid #424242; /* Single line */
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: transparent;
    color: #333;
}

.signup-section input[type="email"]:focus,
.signup-section input[type="password"]:focus,
.signup-section input[type="text"]:focus {
    border-color: #3a80ff;
    box-shadow: 0 2px 5px rgba(58, 128, 255, 0.5);
    outline: none;
    background-color: transparent;
}

.signup-now {
    background: #3a80ff;
    color: white;
}

.signup-now:hover {
    background: #08317c;
}


/* Add these styles at the end of your existing CSS file */
#password-strength-meter {
    background: rgba(0, 28, 80, 0.822);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
}

#password-strength-meter p {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

#password-strength-meter ul {
    list-style-type: none;
    padding: 0;
}

#password-strength-meter li {
    color: #ccc;
    font-size: 0.8rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
}

#password-strength-meter li::before {
    content: '○';
    color: #ccc;
    margin-right: 5px;
    font-size: 1rem;
}

#password-strength-meter li.met {
    color: #4CAF50;
}

#password-strength-meter li.met::before {
    content: '✓';
    color: #4CAF50;
}

#password-match-message {
    font-size: 1.0rem;
    margin-top: 5px;
    text-align: center;
}
/* Forgot Password section styles */
.forgot-password-section {
    display: none;
    flex: 1;
    padding: 40px;
    border-radius: 10px;
    color: black;
    flex-direction: column;
    justify-content: center;
}

.forgot-password-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.forgot-password-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.reset-password-btn {
    color: white;
    border: none;
    background: #2666e2;
    border-radius: 25px;
    padding: 12px 35px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(38, 102, 226, 0.3);
}

.reset-password-btn:hover {
    background: #1a54cc;
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(38, 102, 226, 0.4);
}

.reset-password-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(38, 102, 226, 0.4);
}

/* Powered by section styles */
.powered-by {
    position: absolute;
    color: rgb(0, 0, 0);
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem; /* Decrease text size */
}

.powered-by img {
    width: 30px; /* Decrease image size */
    height: auto;
}

.attribution {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #3a3a3a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    text-align: center;
    transition: opacity 0.3s ease;
}

.attribution:hover {
    opacity: 1;
}

.attribution a {
    color: #000000;
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .attribution {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .container {
        margin-bottom: 60px; /* Add space above the attribution */
    }

    .login-section, .signup-section {
        padding-bottom: 40px; /* Increase bottom padding to avoid overlap */
    }

    .helper-text {
        margin-bottom: 120px; /* Add space below the "Forgot password?" link */
    }

    .login-now {
        padding: 8px 24px;
        font-size: 0.9rem;
    }

    .back-to-login {
        font-size: 14px;
        padding: 10px 14px;
    }

    .back-to-login svg {
        width: 18px;
        height: 18px;
    }

    .login-now, .signup-now, .back-to-login {
        width: auto;
        font-size: 0.85rem;
    }

    .background-video {
        object-fit: cover; /* Ensure video fits the whole screen on mobile */
    }
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
        box-shadow: none;
        padding: 10px; /* Add padding for better spacing */
    }

    .welcome-section, .login-section, .signup-section {
        padding: 20px;
    }

    .welcome-section h1 {
        font-size: 1.5rem; /* Decreased size for mobile */
        animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite;
    }

    .welcome-section p, .login-section h2, .signup-section h2 {
        font-size: 1rem;
    }

    .login-section form, .signup-section form {
        width: 100%;
    }

    .login-section input[type="email"], .login-section input[type="password"],
    .signup-section input[type="email"], .signup-section input[type="password"],
    .signup-section input[type="text"] {
        font-size: 0.9rem;
    }

    .login-now, .signup-now, .back-to-login {
        width: auto;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .powered-by {
        bottom: 5px;
        left: 5px;
    }

    .powered-by img {
        width: 30px;
    }

    .background-video {
        object-fit: cover; /* Ensure video fits the whole screen on mobile */
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 36, 112, 0.3);
    border-radius: 50%;
    border-top-color: #0031b9;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

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

.loading-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button .spinner {
    margin: 0 8px 0 0;
}

button.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Error Message */
.error-message {
    background-color: #ff4444;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

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

/* Disable button styles */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Forgot Password Form styles */
.forgot-password-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.forgot-password-form input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.forgot-password-form button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.forgot-password-form button:hover {
  background-color: #0056b3;
}

/* Terms and conditions checkbox styles */
.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    width: 100%;
}

.terms-checkbox .check-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
}

.terms-checkbox .check-container input {
    display: none;
}

.terms-checkbox .check-container svg {
    overflow: visible;
}

.terms-checkbox .check-container .path {
    fill: none;
    stroke: #3a80ff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
    stroke-dasharray: 241 9999999;
    stroke-dashoffset: 0;
}

.terms-checkbox .check-container input:checked ~ svg .path {
    stroke-dasharray: 70.5096664428711 9999999;
    stroke-dashoffset: -262.2723388671875;
}

.terms-checkbox a {
    color: #3a80ff;
    text-decoration: none;
    font-weight: 500;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Update alert message styles */
.alert-message {
    position: fixed !important;
    top: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: rgba(255, 68, 68, 0.95) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
    text-align: center !important;
    font-size: 14px !important;
    min-width: 280px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out !important;
}

.alert-message.show {
    opacity: 1;
    transform: translate(-50%, 0) !important;
}

@keyframes slideDown {
    from { 
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from { 
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to { 
        transform: translate(-50%, -20px);
        opacity: 0;
    }
}
