html {
    background-color: #1e1e2f;
    height: -webkit-fill-available;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #2a2a72, #009ffd);
    background-size: 200% 200%;
    background-attachment: fixed;
    animation: gradientBG 12s ease infinite;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-wrapper {
    margin: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    box-sizing: border-box;
}

.logo-container {
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

img {
    max-width: 90%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 320px;
    animation: fadeIn 1s ease-in forwards;
    box-sizing: border-box;
}

.login-box input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-box input:focus {
    border-color: #009ffd;
    background: rgba(255, 255, 255, 0.15);
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #009ffd;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.login-box button:hover {
    background: #007bc7;
}

.login-box button:active {
    transform: scale(0.98);
}

.login-box button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
}

.error-msg {
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
    font-weight: 500;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 600px) {
    .main-wrapper {
        gap: 1rem;
        padding: 1rem 0;
    }
    img {
        max-height: 110px;
    }
    .login-box {
        padding: 1.5rem;
    }
}

