/* YoNote - 登录相关样式 */

/* ========================
   用户相关组件
======================== */
/* 用户卡片样式 - 已用 Tailwind CSS 替代 */
/*
.user-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.user-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f6;
    flex-shrink: 0;
}

.user-card-info {
    flex: 1;
    text-align: left;
}

.user-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.3;
}

.user-card-id {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.user-card-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px 0;
}

.profile-btn, .logout-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    background: transparent;
    color: #374151;
}

.profile-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #000;
}

.logout-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #000;
}
*/

/* ========================
   登录弹窗样式
======================== */
.login-container {
    background: white;
    color: #333;
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 420px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.3);
    backdrop-filter: blur(10px);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111827;
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 40px 0;
    line-height: 1.6;
    font-weight: 400;
}

/* 步骤指示器 */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 48px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #19dca8;
    color: white;
    box-shadow: 0 4px 12px rgba(25, 220, 168, 0.3);
}

.step.completed .step-number {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-text {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
    font-weight: 500;
}

.step.active .step-text {
    color: #111827;
    font-weight: 600;
}

/* 二维码区域 */
.qr-container {
    margin: 32px 0 24px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    border: 3px solid #f3f4f6;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    display: block;
}

.loading-qr {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 40px;
    border: 3px solid #f3f4f6;
    border-radius: 16px;
    background: #f9fafb;
    width: 200px;
    height: 200px;
    justify-content: center;
}

.loading-qr .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #19dca8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 状态文本 */
.status-text {
    font-size: 15px;
    margin: 24px 0;
    padding: 16px 24px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 500;
}

.login-status {
    font-size: 15px;
    margin: 24px 0;
    padding: 16px 24px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 500;
}

.login-status.waiting {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.login-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.login-status.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-waiting {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.status-success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.status-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* 刷新按钮 */
.refresh-btn {
    background: #19dca8;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(25, 220, 168, 0.3);
}

.refresh-btn:hover {
    background: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 220, 168, 0.4);
}

/* ========================
   用户资料编辑弹窗 - 大小样式控制区域
======================== */
/* 🔧 编辑资料弹窗尺寸控制 - 开始位置：约第306行 
   📁 文件位置：login-styles.css 第306-320行
   🔗 对应的邀请弹窗样式：modal-styles.css 第378-395行 */
.profile-modal {
    max-width: 420px !important;        /* 🎯 弹窗最大宽度 - 统一按登录弹窗标准 */
    width: 100% !important;             /* 🎯 弹窗相对宽度 - 统一按登录弹窗标准 */
    max-height: 90vh;        /* 🎯 弹窗最大高度 */
    overflow-y: auto;
}

.profile-container {
    padding: 40px 32px;      /* 🎯 内边距 - 统一按登录弹窗标准 */
    background: white;       /* 🎯 背景色 - 统一按登录弹窗标准 */
    border-radius: 24px;     /* 🎯 圆角大小 - 统一按登录弹窗标准 */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* 🎯 阴影 - 统一按登录弹窗标准 */
    border: 1px solid rgba(229, 231, 235, 0.3); /* 🎯 边框 - 统一按登录弹窗标准 */
    backdrop-filter: blur(10px); /* 🎯 背景模糊 - 统一按登录弹窗标准 */
}

.profile-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 32px 0;
    text-align: center;
    letter-spacing: -0.3px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.avatar-upload {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload:hover {
    transform: scale(1.02);
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.avatar-upload:hover .avatar-overlay {
    opacity: 1;
}

.avatar-tips {
    text-align: center;
}

.avatar-tips p {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #19dca8;
    box-shadow: 0 0 0 3px rgba(25, 220, 168, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.cancel-btn, .save-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 70px;
}

.cancel-btn {
    background: #f9fafb;
    color: #374151;
    border-color: #e5e7eb;
}

.cancel-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.save-btn {
    background: #19dca8;
    color: white;
    border-color: #19dca8;
    box-shadow: 0 4px 12px rgba(25, 220, 168, 0.3);
}

.save-btn:hover {
    background: #16a085;
    border-color: #16a085;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 160, 133, 0.4);
}

.save-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}

/* 上传进度 */
.upload-progress {
    text-align: center;
    padding: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #19dca8;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #6b7280;
}

/* ========================
   隐藏不需要的元素
======================== */
.user-info {
    display: none;
}

.user-avatar {
    display: none;
}

.user-name {
    display: none;
}

.user-location {
    display: none;
}

.continue-btn {
    display: none;
}

.footer-info {
    display: none;
}

/* ========================
   响应式设计
======================== */
@media (max-width: 768px) {
    .login-container {
        padding: 32px 24px;
        margin: 20px;
        max-width: 90%;
        border-radius: 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .login-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .steps {
        gap: 24px;
        margin-bottom: 32px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .step-text {
        font-size: 12px;
    }
    
    .qr-container {
        margin: 24px 0;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
    
    .loading-qr {
        width: 160px;
        height: 160px;
        padding: 50px 30px;
    }
    
    .profile-modal {
        width: 90% !important;              /* 🎯 响应式宽度 - 统一按登录弹窗标准 */
        margin: 20px auto;       /* 🎯 响应式边距 - 统一按登录弹窗标准 */
        max-width: 420px !important;          /* 🎯 响应式最大宽度 - 保持420px而不是90% */
    }
    
    .profile-container {
        padding: 32px 24px;      /* 🎯 响应式内边距 - 统一按登录弹窗标准 */
        border-radius: 20px;     /* 🎯 响应式圆角 - 统一按登录弹窗标准 */
    }
    
    .profile-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-actions {
        gap: 10px;
    }
    
    .cancel-btn, .save-btn {
        padding: 9px 20px;
        font-size: 12px;
        min-width: 60px;
    }
} 