/**
 * 登录界面样式
 */

/* 登录区域 */
.fc-chat-login {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f5f5f5;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    min-height: 0; /* 确保可以滚动 */
}

.fc-login-container {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.fc-login-icon {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    margin: 0 auto 20px;
    color: #25D366;
    max-width: 100px;
    max-height: 100px;
}

.fc-login-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fc-login-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px;
}

.fc-login-desc {
    font-size: 14px;
    color: #666666;
    margin: 0 0 24px;
}

/* 登录方式选择 */
.fc-login-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0 0 24px;
    width: 100%;
}

/* 移动端单列显示 */
@media (max-width: 480px) {
    .fc-login-methods {
        grid-template-columns: 1fr;
    }
}

.fc-login-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 140px;
}

.fc-login-method:hover {
    border-color: #25D366;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.fc-login-method-icon {
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    min-width: 50px;
    min-height: 50px;
    max-width: 60px;
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border-radius: 12px;
    color: #25D366;
    flex-shrink: 0;
}

.fc-login-method-icon svg {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
    max-width: 32px;
    max-height: 32px;
}

.fc-login-method-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fc-login-method-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    text-align: center;
}

.fc-login-method-desc {
    font-size: 12px;
    color: #666666;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* 二维码登录区域 */
.fc-qr-login-area {
    margin: 24px 0 0;
}

.fc-qr-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-qr-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.fc-qr-loading {
    color: #999999;
    font-size: 14px;
}

.fc-login-refresh {
    padding: 10px 24px;
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.fc-login-refresh:hover {
    background: #20BA5A;
}

/* 号码登录区域 */
.fc-phone-login-area {
    margin: 24px 0 0;
}

.fc-phone-input-group {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.fc-phone-country-code {
    flex: 0 0 120px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.fc-phone-country-code:focus {
    outline: none;
    border-color: #25D366;
}

.fc-phone-number {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s;
}

.fc-phone-number:focus {
    outline: none;
    border-color: #25D366;
}

.fc-phone-verify-group {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-phone-verify-code {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 8px;
    background: #ffffff;
    transition: border-color 0.2s;
}

.fc-phone-verify-code:focus {
    outline: none;
    border-color: #25D366;
}

.fc-login-submit {
    padding: 12px 24px;
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.fc-login-submit:hover {
    background: #20BA5A;
}

.fc-login-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
}
