/* 第三方登录（Google / Apple）公共样式
   登录弹窗、独立登录页、注册页、用户中心绑定区块共用，随 tpl/common/oauth-buttons 一起引入 */

.oauth-box {
    margin-bottom: 20px;
}

.oauth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #999;
    font-size: 13px;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.oauth-box .oauth-error {
    color: #ff4444;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
    display: none;
}

.oauth-box .oauth-error.show {
    display: block;
}

/* GIS 会把官方按钮渲染进来，这里只负责居中 */
.oauth-btn-google {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    min-height: 40px;
}

.oauth-btn {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.oauth-btn:hover {
    opacity: 0.88;
}

.oauth-btn-apple {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.oauth-btn-apple i {
    font-size: 18px;
}

/* 第三方登录新用户设置用户名 */
.oauth-username-step {
    text-align: left;
}

.oauth-username-title {
    font-size: 20px;
    color: #181C1F;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.oauth-username-tip {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 14px;
}

.oauth-username-step label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.oauth-username-step label i {
    color: #667eea;
    font-size: 14px;
}

.oauth-username-step input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
    box-sizing: border-box;
}

.oauth-username-step input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.oauth-username-step .form-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
    display: none;
}

.oauth-username-step .form-error.show {
    display: block;
}

.oauth-username-step .auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.oauth-username-step .auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 用户中心的第三方账号绑定区块 */
.oauth-bind-tip {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 12px;
}

#oauthBindBox .form-error {
    color: #ff4444;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
}

#oauthBindBox .form-error.show {
    display: block;
}

#oauthBindBox .reputation-label i {
    margin-right: 4px;
}

#oauthBindBox .oauth-btn {
    width: auto;
    min-width: 200px;
}

.oauth-bind-done {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #2e9e5b;
}

.oauth-bind-done em {
    font-style: normal;
    color: #333;
}

.oauth-bind-done small {
    color: #999;
    font-size: 12px;
}
