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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iPhone 手机框架 */
.phone-frame {
    width: 375px;
    height: 812px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 状态栏 */
.status-bar {
    height: 44px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    z-index: 100;
}

.time {
    letter-spacing: -0.3px;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 屏幕内容区域 */
.screen-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 40px;
    position: relative;
}

.screen-content::-webkit-scrollbar {
    display: none;
}

/* Home Indicator */
.home-indicator {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-indicator::before {
    content: '';
    width: 134px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
}

/* Logo */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* 内容区域 */
.content-section {
    animation: fadeIn 0.4s ease-out;
}

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

.title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: #8e8e93;
    margin-bottom: 32px;
    line-height: 1.4;
}

/* 返回按钮 */
.back-button {
    background: none;
    border: none;
    color: #667eea;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.back-button:hover {
    color: #764ba2;
    transform: translateX(-2px);
}

.back-button:active {
    opacity: 0.6;
}

/* 表单 */
.form {
    margin-top: 24px;
}

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

.input-label {
    display: block;
    font-size: 15px;
    color: #8e8e93;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 16px;
    background: #2c2c2e;
    border: 1.5px solid #3a3a3c;
    border-radius: 14px;
    font-size: 17px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-field::placeholder {
    color: #6e6e73;
}

.input-field:focus {
    border-color: #667eea;
    background: #2c2c2e;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-field.error {
    border-color: #ff3b30;
}

/* 验证码输入组 */
.verification-group {
    display: flex;
    gap: 12px;
}

.verification-group .input-field {
    flex: 1;
}

.btn-verification {
    padding: 16px 20px;
    background: #3a3a3c;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-verification:hover {
    background: #48484a;
}

.btn-verification:active {
    transform: scale(0.98);
}

.btn-verification:disabled {
    background: #2c2c2e;
    color: #6e6e73;
    cursor: not-allowed;
}

/* 忘记密码链接 */
.forgot-password {
    text-align: right;
    margin-top: 12px;
    margin-bottom: -8px;
}

/* 主按钮 */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 社交登录按钮 */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.btn-social {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1.5px solid #e5e5ea;
    border-radius: 14px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-social:hover {
    background: #f5f5f7;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-social:active {
    transform: translateY(0);
}

.btn-social svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-social.google {
    background: #ffffff;
}

.btn-social.apple {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-social.apple:hover {
    background: #1c1c1e;
}

.btn-social.email {
    background: #2c2c2e;
    color: #ffffff;
    border-color: #3a3a3c;
}

.btn-social.email:hover {
    background: #3a3a3c;
}

/* 底部链接 */
.footer-links {
    margin-top: 32px;
    text-align: center;
    font-size: 15px;
}

.link-text {
    color: #8e8e93;
}

.link {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 服务条款文本 */
.terms-text {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.6;
}

.terms-text a {
    color: #8e8e93;
    text-decoration: underline;
}

.terms-text a:hover {
    color: #a1a1a6;
}

/* 错误消息 */
.error-message {
    background: rgba(255, 59, 48, 0.12);
    border: 1.5px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #ff453a;
    font-size: 15px;
    display: none;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.error-message.show {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

.error-message svg {
    flex-shrink: 0;
}

/* 成功消息 */
.success-message {
    background: rgba(52, 199, 89, 0.12);
    border: 1.5px solid rgba(52, 199, 89, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #30d158;
    font-size: 15px;
    display: none;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.success-message.show {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

.success-message svg {
    flex-shrink: 0;
}

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

/* 密码强度指示器 */
.password-strength {
    margin-top: 10px;
}

.strength-text {
    font-size: 13px;
    color: #8e8e93;
    margin-bottom: 6px;
}

.strength-bar {
    height: 4px;
    background: #3a3a3c;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.strength-fill.strength-weak {
    width: 33%;
    background: #ff453a;
}

.strength-fill.strength-medium {
    width: 66%;
    background: #ff9f0a;
}

.strength-fill.strength-strong {
    width: 100%;
    background: #30d158;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .phone-frame {
        width: 100%;
        max-width: 375px;
        height: auto;
        min-height: 100vh;
        border-radius: 0;
    }
}

