/* ===== 角色选择 ===== */
.role-selector {
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
}
.role-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
:root[data-theme="dark"] .role-option {
    border-color: #374151;
}
.role-option:hover {
    border-color: #07C160;
    background: rgba(7,193,96,0.03);
}
.role-option-active {
    border-color: #07C160;
    background: rgba(7,193,96,0.05);
}
:root[data-theme="dark"] .role-option-active {
    background: rgba(7,193,96,0.08);
}
.role-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #EFF6FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
    font-size: 14px;
    flex-shrink: 0;
}
:root[data-theme="dark"] .role-icon {
    background: rgba(59,130,246,0.15);
}
.role-icon-supplier {
    background: #FEF3C7;
    color: #F59E0B;
}
:root[data-theme="dark"] .role-icon-supplier {
    background: rgba(245,158,11,0.15);
}
.role-info {
    flex: 1;
}
.role-info strong {
    display: block;
    font-size: 13px;
    color: var(--gray-800);
    font-weight: 600;
    white-space: nowrap;
}
.role-info p {
    font-size: 11px;
    color: var(--gray-400);
    margin: 2px 0 0;
    white-space: nowrap;
}
.role-check {
    width: 22px;
    height: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    color: transparent;
    font-size: 11px;
}
:root[data-theme="dark"] .role-check {
    border-color: #4B5563;
}
.role-option-active .role-check {
    background: #07C160;
    border-color: #07C160;
    color: #fff;
}
.role-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #F59E0B;
    margin-bottom: 24px;
}
.role-hint i {
    font-size: 13px;
}

/* ===== 微信登录 ===== */
.wechat-login-box {
    margin-bottom: 24px;
}
.wechat-qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray-400);
    font-size: 14px;
    gap: 12px;
}
.wechat-qr-loading i {
    font-size: 28px;
    color: #07C160;
}
.wechat-qr-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
:root[data-theme="dark"] .wechat-qr-card {
    background: #1F2937;
    border-color: #374151;
}
.wechat-qr-img-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}
:root[data-theme="dark"] .wechat-qr-img-wrap {
    border-color: #374151;
}
.wechat-qr-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wechat-qr-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #07C160;
}
:root[data-theme="dark"] .wechat-qr-overlay {
    background: rgba(31,41,55,0.92);
}
.wechat-qr-overlay i { font-size: 36px; }
.wechat-qr-overlay span { font-size: 14px; font-weight: 600; }
.wechat-qr-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.wechat-qr-icon {
    width: 32px;
    height: 32px;
    background: #07C160;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.wechat-qr-text { text-align: left; }
.wechat-qr-text strong { display: block; font-size: 14px; color: var(--gray-800); }
.wechat-qr-text p { font-size: 12px; color: var(--gray-400); margin: 2px 0 0; }
.wechat-qr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
}
:root[data-theme="dark"] .wechat-qr-footer { border-top-color: #374151; }
.wechat-qr-timer {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}
.wechat-qr-refresh {
    background: none;
    border: 1px solid #D1D5DB;
    color: var(--gray-500);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.wechat-qr-refresh:hover { border-color: #07C160; color: #07C160; }
.wechat-qr-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    color: #EF4444;
    font-size: 14px;
}
.wechat-qr-error i:first-child { font-size: 32px; }
.wechat-qr-retry {
    background: #07C160;
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.wechat-qr-retry:hover { background: #06AD56; }

/* Divider */
.wechat-divider {
    text-align: center;
    margin: 20px 0 16px;
    position: relative;
    color: var(--gray-400);
    font-size: 13px;
}
.wechat-divider::before,
.wechat-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 50px);
    height: 1px;
    background: #E5E7EB;
}
:root[data-theme="dark"] .wechat-divider::before,
:root[data-theme="dark"] .wechat-divider::after { background: #374151; }
.wechat-divider::before { left: 0; }
.wechat-divider::after { right: 0; }

/* Alt login */
.wechat-alt-login {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    color: var(--gray-600);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
:root[data-theme="dark"] .wechat-alt-login {
    background: #111827;
    border-color: #374151;
}
.wechat-alt-login:hover { border-color: var(--primary); color: var(--primary); }
.wechat-alt-login i:first-child { font-size: 18px; color: #07C160; }
.wechat-alt-login i:last-child { margin-left: auto; font-size: 12px; color: var(--gray-300); }

/* 协议勾选区域 */
.agreement-section {
    margin-bottom: 16px;
}
.agreement-check-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.agreement-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
}
.agreement-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1677FF;
}
.agreement-links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6B7280;
    margin-left: 22px;
}
.agreement-link-btn {
    background: none;
    border: none;
    color: #1677FF;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
}
.agreement-link-btn:hover {
    color: #0958D9;
}
:root[data-theme="dark"] .agreement-label {
    color: #D1D5DB;
}
:root[data-theme="dark"] .agreement-links {
    color: #9CA3AF;
}
