@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Inter', system_ui, sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-card {
    background: #111113;
    border-radius: 0.75rem;
    padding: 40px 32px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    border: 1px solid #1f1f23;
}

.header-image,
.subtitle,
.error-box,
input,
.sign-in-btn,
.whats-this-link,
.signup-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Staggered delays – total settle time ~1.2s */
.header-image          { animation-delay: 0ms; }
.subtitle              { animation-delay: 120ms; }
.error-box             { animation-delay: 240ms; }
input[name="username"] { animation-delay: 360ms; }
input[name="password"] { animation-delay: 480ms; }
.sign-in-btn           { animation-delay: 600ms; }
.whats-this-link       { animation-delay: 720ms; }
.signup-section        { animation-delay: 840ms; }

.header-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto 24px;
}

.subtitle {
    color: #a1a1aa;
    font-size: 15px;
    margin-bottom: 32px;
    text-align: center;
}

input {
    background: #ffffff;
    color: #111113;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px 18px;
    width: 100%;
    font-size: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.sign-in-btn {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.sign-in-btn:hover {
    background: #34d399;
}

.whats-this-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #22d3ee;
    text-decoration: none;
    font-size: 14px;
}

.whats-this-link:hover {
    color: #67e8f9;
}

.error-box {
    background: #7f1d1d;
    border: 1px solid #f87171;
    color: #fecaca;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
}