/* ===========================
   BASE
=========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* ===========================
   CARD
=========================== */

.login-wrapper {
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease;
}

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

h1 {
    margin: 0;
    text-align: center;
    font-size: 24px;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

/* ===========================
   FORM
=========================== */

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: 0.2s ease;
}

input:focus {
    border-color: #2563eb;
    outline: none;
}

/* ===========================
   BUTTON
=========================== */

.btn.primary {
    background: #2563eb;
    color: white;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn.primary:hover {
    background: #1d4ed8;
}

.btn.primary:active {
    transform: scale(0.97);
}

/* ===========================
   ERROR
=========================== */

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

/* ===========================
   DESKTOP
=========================== */

@media (min-width: 768px) {

    .login-card {
        padding: 40px;
    }

    h1 {
        font-size: 28px;
    }
}
