/* Login Modal & WeChat Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.login-modal-container {
    background: var(--card-bg);
    border-radius: 12px;
    width: 380px;
    max-width: 90%;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    color: var(--text-color);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

/* 1. PC Quick Login View */
.quick-login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-login-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-login-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-color);
}

.wechat-green-btn {
    background: #07c160;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 20px;
    width: 200px;
    transition: background 0.2s;
}

.wechat-green-btn:hover {
    background: #06ad56;
}

.switch-login-link {
    color: #576b95;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.switch-login-link:hover {
    text-decoration: underline;
}

/* 2. PC QR View */
.login-title {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 30px;
    color: var(--text-color);
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: white; /* QR always on white */
}

.qr-logo-center {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.qr-tip {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.qr-subtip {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 3. Mobile Auth View */
.auth-header-mobile {
    text-align: left;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-top: -10px;
}

.auth-app-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 16px;
}

.auth-app-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.auth-body-mobile {
    text-align: left;
}

.auth-body-mobile h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.auth-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.auth-user-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.auth-user-text {
    display: flex;
    flex-direction: column;
}

.auth-user-text .name {
    font-weight: 500;
    font-size: 15px;
}

.auth-user-text .desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.auth-check {
    color: #07c160;
    font-weight: bold;
    font-size: 18px;
}

.auth-other-info a {
    color: #576b95;
    font-size: 14px;
    text-decoration: none;
}

.auth-footer-mobile {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.auth-btn-grey {
    flex: 1;
    background: var(--hover-bg);
    color: var(--text-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.auth-btn-green {
    flex: 1;
    background: #07c160;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

/* Mobile specific adjustment for modal */
@media (max-width: 768px) {
    .login-modal-container {
        position: fixed;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 30px 20px;
        margin: 0;
        transform: translateY(0);
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .close-modal {
        display: none; /* Usually mobile sheets don't have X, or it's different */
    }
}
