/* ================== 邀请码登录界面样式 ================== */
.invite-code-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.invite-code-modal {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 400px;
    max-width: 500px;
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invite-code-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.invite-code-header p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
}

.invite-code-body .input-group {
    margin-bottom: 20px;
}

.invite-code-body input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.invite-code-body input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.invite-code-body .button-group {
    margin-bottom: 20px;
}

.invite-code-body button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.invite-code-body button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.invite-code-body button:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .invite-code-modal {
        margin: 20px;
        padding: 30px 20px;
        min-width: auto;
        max-width: none;
    }

    .invite-code-header h2 {
        font-size: 20px;
    }

    .invite-code-body input[type="text"],
    .invite-code-body button {
        padding: 12px;
        font-size: 14px;
    }
}