/* 租户登录/注册 — 与官网 home.css 统一的门户样式 */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.auth-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.auth-navbar .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-navbar .logo {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-navbar .logo img {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.auth-navbar .logo .logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    white-space: nowrap;
}

.auth-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.auth-navbar .nav-links a {
    padding: 8px 14px;
    font-size: 14px;
    color: #555;
    border-radius: 6px;
    transition: all .2s;
}

.auth-navbar .nav-links a:hover,
.auth-navbar .nav-links a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.auth-navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 48px;
}

.auth-shell {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 32px;
    align-items: stretch;
}

.auth-brand {
    color: #fff;
    padding: 24px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand .badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
    width: fit-content;
}

.auth-brand h1 {
    font-size: 36px;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 16px;
    font-weight: 800;
}

.auth-brand p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 28px;
    max-width: 480px;
}

.auth-brand ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-brand li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-brand li i {
    color: #fde68a;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.auth-card-head {
    padding: 28px 32px 0;
    text-align: center;
}

.auth-card-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1a1a2e;
}

.auth-card-head p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin: 20px 32px 0;
}

.auth-tabs-single {
    display: none;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.auth-card-body {
    padding: 24px 32px 28px;
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.active {
    display: block;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    box-sizing: border-box;
    transition: all .2s;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
    color: #666;
}

.auth-options a {
    color: #667eea;
    text-decoration: none;
}

.auth-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    transition: all .25s;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #666;
}

.auth-switch a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.auth-qrcode-wrap {
    text-align: center;
    padding: 8px 0;
}

.auth-qrcode-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.auth-qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-qrcode-tip {
    font-size: 14px;
    color: #666;
}

.auth-qrcode-tip i {
    color: #07c160;
    margin-right: 4px;
}

.auth-footer-mini {
    text-align: center;
    padding: 16px 24px 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.auth-footer-mini a {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .auth-brand {
        display: none;
    }
}
