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

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 50%, #f1f1f1 50%);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    padding: 20px;
}

.login-box, .reset-password-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    width: 120px;
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 30px;
    color: #202124;
    font-size: 24px;
    font-weight: 400;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    color: #202124;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

.input-group input:focus {
    border-color: #4285f4;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #5f6368;
    pointer-events: none;
    transition: top 0.3s, font-size 0.3s, color 0.3s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #4285f4;
}

#forgot-password-link, #back-to-login {
    display: block;
    margin-bottom: 30px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

#forgot-password-link:hover, #back-to-login:hover {
    text-decoration: underline;
}

#submit-btn, #reset-btn {
    background-color: #1a73e8;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-btn:hover, #reset-btn:hover {
    background-color: #1766d1;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f1f3f4;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #5f6368;
    z-index: 100;
}

.cf-turnstile {
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box, .reset-password-box {
        padding: 30px;
    }

    h2 {
        font-size: 22px;
    }

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

    #submit-btn, #reset-btn {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .login-box, .reset-password-box {
        padding: 20px;
    }

    h2 {
        font-size: 20px;
    }

    .input-group input {
        font-size: 12px;
    }

    #submit-btn, #reset-btn {
        font-size: 12px;
        padding: 8px;
    }

    footer {
        font-size: 10px;
    }
}
