.oauth-logon-wrap {
    padding: var(--su24) var(--su16);
}

.oauth-logon-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
}

.oauth-logon-card {
    width: 100%;
    max-width: 520px;
}

.oauth-login-title {
    font-size: 28px;
    font-weight: 700;
}

.oauth-login-subtitle {
    font-size: 14px;
    color: var(--so-black-400);
}

.oauth-login-tabs {
    border-bottom: 1px solid var(--so-black-200);
}

.oauth-login-tabs .nav-link {
    border: 0;
    color: var(--so-black-400);
    font-weight: 600;
    padding: var(--su12) 0;
    position: relative;
    transition: color 0.2s ease;
}

.oauth-login-tabs .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 3px;
    background: var(--bs-primary);
    transition: width 0.25s ease;
}

.oauth-login-tabs .nav-link.active {
    color: var(--bs-primary);
    background: transparent;
}

.oauth-login-tabs .nav-link.active::after {
    width: 100%;
}

.oauth-login-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--so-black-500);
}

.oauth-login-input-group .input-group-text {
    min-width: 56px;
    justify-content: center;
}

.oauth-login-code-btn {
    white-space: nowrap;
    min-width: 120px;
}

.oauth-login-code-btn:disabled {
    opacity: 0.65;
}

.oauth-login-submit-btn:disabled {
    opacity: 0.7;
}

.oauth-login-wechat-wrap {
    padding: var(--su8) 0;
}

.oauth-login-wechat-text {
    font-size: 14px;
    color: var(--so-black-400);
}

.oauth-login-wechat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--su8);
}

.oauth-login-wechat-btn .iconfont {
    font-size: 20px;
    line-height: 1;
}

.oauth-qr-box {
    width: 200px;
    height: 200px;
    background: var(--so-black-150);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--su12);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.oauth-qr-box iframe,
.oauth-qr-box img {
    max-width: 100%;
    max-height: 100%;
}

.oauth-login-consent-box {
    margin-top: var(--su16);
    padding: var(--su12) var(--su16);
    border-left: 4px solid var(--bs-primary);
    background: var(--so-black-150);
}

.oauth-login-consent-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--su12);
    min-height: 0;
}

.oauth-login-consent-check .form-check-input {
    margin: 0;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--bs-primary);
}

.oauth-login-consent-label {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--so-black-500);
}

.oauth-login-consent-label a {
    font-weight: 600;
}

.oauth-login-error {
    min-height: 24px;
    font-size: 13px;
    color: var(--so-red-400);
}

.oauth-debug-card {
    width: 100%;
    max-width: 520px;
}

@media (max-width: 767.98px) {
    .oauth-logon-wrap {
        padding-top: var(--su24);
        padding-bottom: var(--su24);
    }

    .oauth-logon-center {
        min-height: auto;
    }

    .oauth-login-title {
        font-size: 24px;
    }

    .oauth-login-subtitle {
        font-size: 13px;
    }

    .oauth-login-code-btn {
        min-width: 108px;
    }
}

@media (max-width: 575.98px) {
    .oauth-login-consent-box {
        padding: var(--su12) var(--su12);
    }

    .oauth-login-consent-label {
        font-size: 13px;
    }
}
