* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(68, 149, 173, 0.38), transparent 36%),
        radial-gradient(circle at bottom right, rgba(28, 78, 92, 0.45), transparent 34%),
        linear-gradient(145deg, #0d1d25 0%, #16303b 45%, #214757 100%);
}

.login-container {
    width: 100%;
    max-width: 460px;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 34px 30px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 24px 60px rgba(4, 16, 22, 0.28);
    backdrop-filter: blur(10px);
}

.brand-block {
    text-align: center;
    margin-bottom: 26px;
}

.brand-logo {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 14px;
    box-shadow: 0 12px 26px rgba(185, 28, 28, 0.12);
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 33px;
    line-height: 1.12;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.65;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1f2937;
    font-weight: 700;
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d4dbe4;
    border-radius: 14px;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    background: #fbfdff;
    transition: 0.25s ease;
}

.input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
    background: #ffffff;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #27495a 0%, #355f72 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 14px 28px rgba(39, 73, 90, 0.24);
}

.login-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #213d4b 0%, #2e5566 100%);
}

.error-message {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    background: #ecfdf5;
    color: #047857;
    padding: 12px 14px;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

.login-divider {
    position: relative;
    margin: 24px 0 18px;
    text-align: center;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #dbe3e8;
}

.login-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.98);
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.passkey-btn {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.passkey-btn:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.passkey-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.passkey-btn-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #355f72;
}

.passkey-btn-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.passkey-btn-label {
    display: inline-block;
    white-space: nowrap;
}

.passkey-note {
    margin-top: 14px;
    color: #475569;
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
}

@media (max-width: 600px) {
    body {
        padding: 16px;
        align-items: center;
    }

    .login-box {
        padding: 28px 22px 24px;
        border-radius: 20px;
    }

    .brand-logo {
        width: 64px;
        height: 64px;
    }

    .login-box h2 {
        font-size: 29px;
    }

    .passkey-btn-label {
        white-space: normal;
    }
}
