@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #1b5e20, #1565c0);
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    background: rgba(30, 30, 30, 0.95);
    padding: clamp(20px, 5vw, 30px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

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

h1 {
    color: #90caf9;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 20px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    margin: 12px 0;
    border-radius: 8px;
    border: none;
    background: #2c2c2c;
    color: #e0e0e0;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
}

input:focus {
    outline: none;
    background: #3a3a3a;
    transform: scale(1.02);
}

input[type="email"] {
    background: #2c2c2c url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23e0e0e0" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 2l-8 5-8-5V6l8 5 8-5z"/></svg>') no-repeat 10px center;
    background-size: 20px;
}

input[type="password"] {
    background: #2c2c2c url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23e0e0e0" viewBox="0 0 24 24"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.5 6c0-1.93 1.57-3.5 3.5-3.5s3.5 1.57 3.5 3.5v2h-7V6z"/></svg>') no-repeat 10px center;
    background-size: 20px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, filter 0.2s;
}

button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.success {
    background-color: #2e7d32;
    color: #a5d6a7;
    display: block;
}

.error {
    background-color: #d32f2f;
    color: #ef9a9a;
    display: block;
}

a {
    color: #90caf9;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 12px;
    display: inline-block;
    transition: color 0.2s;
}

a:hover {
    color: #64b5f6;
    text-decoration: underline;
}

p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.5;
    margin: 10px 0;
}

footer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #777;
}

footer a {
    color: #90caf9;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        max-width: 100%;
    }

    h1 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
    }

    input, button {
        font-size: 0.9rem;
        padding: 10px 10px 10px 36px;
    }

    input[type="email"], input[type="password"] {
        background-size: 18px;
        background-position: 8px center;
    }

    p, a, .status {
        font-size: 0.85rem;
    }
}
