* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #243044;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28rem),
        linear-gradient(180deg, #fffaf3 0%, #f7efe3 100%);
}

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

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 60px rgba(31, 41, 55, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

.brand h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.brand p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.subtitle {
    margin: 18px 0 24px;
    color: #6b7280;
    line-height: 1.7;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 14px;
    color: #374151;
    font-weight: 650;
}

.field input {
    width: 100%;
    border: 1px solid #d8dfec;
    background: #ffffff;
    border-radius: 16px;
    padding: 13px 14px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

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

button {
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    padding: 14px 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.18s ease;
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.message {
    min-height: 22px;
    font-size: 14px;
    line-height: 1.5;
}

.message.error {
    color: #b91c1c;
}

.message.ok {
    color: #047857;
}

@media (max-width: 520px) {
    .login-page {
        align-items: flex-start;
        padding: 24px 16px;
    }

    .login-card {
        margin-top: 10vh;
        padding: 24px;
        border-radius: 24px;
    }
}
