* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&display=swap');

body {
    font-family: 'Caveat', cursive;
    color: #333;
    background-color: #2a9b8e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Header Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.header.scrolled {
    background-color: #4b4b4b;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
    font-family: 'Caveat', cursive;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 60px 50px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    margin-top: 100px;
}

.login-container h1 {
    font-size: 42px;
    color: #2a9b8e;
    margin-bottom: 15px;
    font-weight: 500;
    font-style: italic;
}

.login-container p {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

/* Hints Section */
.hints {
    background: #f9f9f9;
    border-left: 4px solid #2a9b8e;
    padding: 15px 20px;
    margin: 25px 0;
    text-align: left;
    border-radius: 4px;
}

.hints h3 {
    color: #2a9b8e;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.hints ul {
    list-style: none;
    padding: 0;
}

.hints li {
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.hints li:before {
    content: "✨";
    position: absolute;
    left: 0;
}

/* Input Group */
.input-group {
    margin: 30px 0;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Caveat', cursive;
    transition: border-color 0.3s ease;
    text-align: center;
    color: #333;
}

.input-group input:focus {
    outline: none;
    border-color: #2a9b8e;
    box-shadow: 0 0 8px rgba(42, 155, 142, 0.2);
}

.input-group input::placeholder {
    color: #999;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.input-shake {
    animation: shake 0.5s ease-in-out;
}

/* Submit Button */
.submit-btn {
    background-color: #2a9b8e;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Caveat', cursive;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.submit-btn:hover {
    background-color: #258075;
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Messages */
.error-message {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 15px;
    display: none;
    font-weight: 500;
}

.success-message {
    color: #27ae60;
    font-size: 16px;
    margin-top: 15px;
    display: none;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }

    .login-container h1 {
        font-size: 32px;
    }

    .login-container p {
        font-size: 18px;
    }

    .hints li {
        font-size: 14px;
    }

    .submit-btn {
        font-size: 18px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .login-container h1 {
        font-size: 28px;
    }

    .login-container p {
        font-size: 16px;
    }

    .hints {
        padding: 12px 15px;
    }

    .hints h3 {
        font-size: 16px;
    }

    .hints li {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
}
