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

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background: #f4f7fb;
    color: #1e293b;
}

button,
input {
    font: inherit;
}

.loginPage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
}

.loginCard {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.loginLogo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.loginLogo img {
    width: 230px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.loginHeader {
    text-align: center;
    margin-bottom: 25px;
}

.loginHeader h1 {
    color: #0f2747;
    font-size: 24px;
    font-weight: 700;
}

.loginHeader p {
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
}

.loginField {
    margin-bottom: 17px;
}

.loginField label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.loginField input {
    width: 100%;
    height: 45px;
    padding: 0 13px;

    border: 1px solid #dbe3ee;
    border-radius: 9px;

    outline: none;
    background: #ffffff;
    color: #1e293b;

    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.loginField input::placeholder {
    color: #94a3b8;
}

.loginField input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.loginError {
    margin: 3px 0 14px;
    padding: 10px 12px;

    border: 1px solid #fecaca;
    border-radius: 8px;

    background: #fef2f2;
    color: #b91c1c;

    font-size: 11px;
    line-height: 1.5;
}

.loginError[hidden] {
    display: none !important;
}

.loginButton {
    width: 100%;
    height: 45px;

    border: none;
    border-radius: 9px;

    background: #2563eb;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.loginButton:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}

.loginButton:active {
    transform: translateY(0);
    box-shadow: none;
}

.loginButton:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 480px) {
    .loginPage {
        padding: 20px 14px;
    }

    .loginCard {
        padding: 25px 20px;
    }

    .loginLogo img {
        width: 200px;
    }
}
