@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display box-shadow: 0px 0px 100px rgb(250, 250, 250);=swap');



header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 15%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white; /* White text */
    padding: 0.5rem;
    padding-top: 0;
    text-align: center;
    font-size: 3rem;
    font-family: 'Dancing Script', 'Lucida Handwriting', cursive;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it stays on top of other content */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)); */
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    padding-top: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    margin: 10rem auto;
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.login-container:hover {
    transform: translateY(-5px);
   
    box-shadow: 0 8px 32px rgba(234, 120, 250, 0.926);
}

h2 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkboxdiv {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.checkboxdiv input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.checkboxdiv label {
    margin: 0;
    cursor: pointer;
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.error-message {
    color: #e53e3e;
    text-align: center;
    margin: .5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: rgba(249, 248, 251, 0.916);
    font-size: 0.9rem;
    line-height: 1.4;
}

.toggle-form {
    text-align: center;
    margin-top: 1rem;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-form:hover {
    color: #667eea;
}

.google-signin {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Loading animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    header {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-weak {
    width: 33%;
    background-color: #e53e3e;
}

.strength-medium {
    width: 66%;
    background-color: #f6ad55;
}

.strength-strong {
    width: 100%;
    background-color: #48bb78;
}

/* Google Sign-In Styles */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #666;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 10px;
}

.google-signin {
    width: 100%;
    margin-top: 10px;
}

/* Ensure Google button is responsive */
@media (max-width: 480px) {
    .google-signin {
        width: 100%;
    }
}

