* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #172033;
}

.login-page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #ffffff 100%);
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.login-brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.login-brand p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.login-title {
    margin-bottom: 24px;
}

.login-title h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    color: #0f172a;
}

.login-title span {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: #64748b;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.form-group input {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: 0.15s ease;
}

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

.login-message {
    display: none;
    margin-bottom: 15px;
    padding: 11px 13px;
    border-radius: 13px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.login-message.show {
    display: block;
}

.two-factor-info {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

#btnLogin {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 15px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
    transition: 0.15s ease;
}

#btnLogin:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

#btnLogin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none !important;
}

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

    .login-card {
        padding: 26px;
        border-radius: 20px;
    }

    .login-logo {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 24px;
    }

    .login-brand h1 {
        font-size: 19px;
    }

    .login-title h2 {
        font-size: 22px;
    }
}
.twofactor-box {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #bfdbfe;
    text-align: center;
}

.twofactor-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.twofactor-title {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 7px;
}

.twofactor-text {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

#twoFactorCode {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 8px;
}

.btn-back-login {
    width: 100%;
    height: 40px;
    margin-bottom: 14px;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-back-login:hover {
    text-decoration: underline;
}