/* Reset & font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(135deg, #74ebd5, #9face6);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInBody 1.5s ease-in-out;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    background-color: white;
    padding: 2.5rem 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
}

button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #6c63ff, #48c6ef);
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background 0.4s ease;
}

button:hover {
    background: linear-gradient(135deg, #48c6ef, #6c63ff);
    transform: scale(1.02);
}

#error {
    margin-top: 1rem;
    color: red;
    font-weight: bold;
    min-height: 20px;
    transition: opacity 0.3s ease-in-out;
}
button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease-in-out;
}

.loading {
    background: #ccc !important;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
        max-width: 90%;
        margin: 0 1rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    input[type="text"],
    input[type="password"] {
        padding: 0.65rem 0.9rem;
        font-size: 0.95rem;
    }

    button {
        padding: 0.65rem 0.9rem;
        font-size: 0.95rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}
