:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(
        145deg,
        #081323 0%,
        #102743 55%,
        #17385a 100%
    );
    color: #eaf2fc;
}

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

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 42px 38px;
    background: #14263d;
    border: 1px solid #35506c;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 32px;
}

.brand-name {
    color: #62b5ff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
}

.brand-description {
    color: #b7cce1;
    font-size: 15px;
    letter-spacing: 0.5px;
}

h1 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
}

.intro {
    margin: 0 0 28px;
    color: #b7cce1;
    font-size: 14px;
    line-height: 1.6;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    color: #dce9f7;
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;
    margin-bottom: 22px;
    padding: 13px 14px;
    background: #0b192a;
    color: #ffffff;
    border: 1px solid #47617c;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
}

input:focus-visible {
    outline: 2px solid #62b5ff;
    outline-offset: 2px;
}

button {
    width: 100%;
    padding: 14px;
    background: #2589df;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #1475c8;
}

button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

button:disabled {
    opacity: 0.6;
    cursor: wait;
}

#login-status {
    min-height: 20px;
    margin: 16px 0 0;
    color: #ffb7b7;
    font-size: 14px;
    text-align: center;
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #35506c;
    color: #8fa9c3;
    font-size: 12px;
    text-align: center;
}

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

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

@media (prefers-reduced-motion: reduce) {
    button {
        transition: none;
    }
}
