* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #172016;
    background:
        radial-gradient(circle at top left, rgba(28, 132, 68, 0.18), transparent 32rem),
        linear-gradient(135deg, #f7fbf6 0%, #eef6f2 48%, #f8fafc 100%);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 430px);
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe7dd;
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
    animation: loginEnter 220ms ease-out;
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #1c8444;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(28, 132, 68, 0.24);
}

.login-brand h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.login-brand p {
    margin: 8px 0 0;
    color: #647063;
    font-size: 14px;
}

.login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-form label {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 15px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
    border-color: #1c8444;
    box-shadow: 0 0 0 3px rgba(28, 132, 68, 0.14);
}

.password-field {
    display: flex;
    gap: 8px;
}

.password-field input {
    flex: 1;
}

.password-field button {
    min-width: 92px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 8px;
    color: #475569;
    font-weight: 600;
}

.remember-row input {
    width: 17px;
    height: 17px;
    accent-color: #1c8444;
}

.login-button {
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: #1c8444;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
}

.login-button:hover {
    background: #166b37;
    transform: translateY(-1px);
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.button-loading {
    display: none;
}

.login-button.is-loading .button-text {
    display: none;
}

.login-button.is-loading .button-loading {
    display: inline;
}

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

@media (max-width: 520px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 24px 18px;
    }

    .password-field {
        flex-direction: column;
    }

    .password-field button {
        min-height: 42px;
    }
}
