@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Modern CSS Reset */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

img, svg, object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #1a2332; /* Exact dark navy from snakets_cover.jpeg */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-bottom: 1px solid #2a3440;
}

.nav-logo object {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-logo object:hover {
    transform: scale(1.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #1a2332; /* Exact dark navy from snakets_cover.jpeg */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 90px;
    overflow: hidden; /* Disable body scroll */
}

.container {
    background: #151d28; /* Slightly darker than background */
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 40vw;
    height: auto;
    border: 2px solid #2a3440;
    display: flex;
    flex-direction: column;
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    max-width: min(200px, 70%);
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

.logo object {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

.message-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

#usernameInput,
#passwordInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #2a3440;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: #0f1620;
    color: #FFFFFF;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#usernameInput:focus,
#passwordInput:focus {
    border-color: #4a90a4;
    outline: none;
    background: #112831;
}

#usernameInput::placeholder,
#passwordInput::placeholder {
    color: #6b8996;
    opacity: 1;
}

#submitBtn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #4a90a4 0%, #5ba3b8 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

#submitBtn:hover {
    background: linear-gradient(135deg, #5ba3b8 0%, #6bb3c9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 164, 0.4);
}

#submitBtn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #3a8094 0%, #4a90a4 100%);
}

/* Add some animation for when the input is filled */
#usernameInput:not(:placeholder-shown),
#passwordInput:not(:placeholder-shown) {
    border-color: #4a90a4;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 60vw;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 80vw;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .navbar {
        height: 70px;
    }
    
    .nav-logo object {
        height: 50px;
    }
    
    #logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 95vw;
        padding: 1.5rem;
    }
    
    #logo {
        max-width: 120px;
    }
    
    #usernameInput,
    #passwordInput {
        padding: 12px;
        font-size: 14px;
    }
    
    #submitBtn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: #1a2332; /* Solid background fallback */
    }
}

@supports not (filter: brightness(0)) {
    .nav-logo object {
        /* Alternative styling for browsers that don't support filters */
        opacity: 0.95;
    }
}

