/* TikTok 店铺授权页面样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* 主容器 */
.container {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

/* 头部区域 */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    position: relative;
    overflow: hidden;
}

.company-name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* 成功图标 */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.success-icon::after {
    content: "✓";
    color: white;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.success-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.success-subtitle {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 16px;
    font-weight: 400;
}

.description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 36px;
    font-size: 14px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
    position: relative;
}

.form-label::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: #3b82f6;
    border-radius: 50%;
}

.input-group {
    position: relative;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    background: #ffffff;
    color: #1e293b;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
    font-style: normal;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #2563eb;
}

.copy-btn:active {
    background: #1d4ed8;
}

/* 警告提示 */
.warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #92400e;
    position: relative;
    overflow: hidden;
}

.warning::before {
    content: "⚠️";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.warning {
    padding-left: 36px;
}

/* 加载状态 */
.loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
}

.loading div {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
}

/* 消息提示 */
.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    color: #991b1b;
    display: none;
    position: relative;
    border-left: 3px solid #ef4444;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    color: #166534;
    display: none;
    position: relative;
    border-left: 3px solid #22c55e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 40px 30px;
        margin: 10px;
        border-radius: 16px;
        max-width: 90%;
    }

    .success-title {
        font-size: 28px;
    }

    .company-name {
        font-size: 20px;
    }

    .logo {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon::after {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    .success-title {
        font-size: 24px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
    }

    .form-input {
        font-size: 14px;
        padding: 14px 16px;
    }

    .copy-btn {
        padding: 14px 16px;
        font-size: 14px;
    }

    .description {
        font-size: 14px;
        padding: 16px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .container {
        background: rgba(30, 30, 30, 0.95);
        color: #e0e0e0;
    }

    .form-input {
        background: rgba(50, 50, 50, 0.8);
        border-color: #444;
        color: #e0e0e0;
    }

    .form-input:focus {
        background: rgba(60, 60, 60, 0.9);
    }

    .form-label {
        color: #e0e0e0;
    }

    .success-subtitle,
    .description {
        color: #b0b0b0;
    }
}

/* 聚焦效果 */
.form-input:focus + .copy-btn {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
