/* 注册页面通用样式 */

/* 整体容器优化 */
.login-container {
    padding: 48px 40px !important;
    max-width: 450px !important;
    width: 100% !important;
    min-height: 780px !important;  /* 与密码重置页面保持一致 */
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* 语言选择器布局 - 靠底部对齐 */
.login-container .language-selector {
    margin-top: auto !important;
    padding-top: 16px !important;
}

/* 返回按钮 */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-button a {
    color: #666;
    text-decoration: none;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    padding: 8px;
    border-radius: 6px;
    width: 36px;
    height: 36px;
}

.back-button a:hover {
    color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin: 10px 0 40px 0;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.page-title .subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* 步骤指示器 */
.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: white;
    color: #999;
    position: relative;
    z-index: 2;
}

.step-circle.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step-circle.active {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.2;
    max-width: 80px;
    white-space: nowrap;
}

.step-label.completed {
    color: #10b981;
}

.step-label.active {
    color: #4285f4;
    font-weight: 600;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 16px;
    margin-top: -24px;
    position: relative;
    z-index: 1;
}

.step-connector.completed {
    background: #10b981;
}

.step-connector.active {
    background: #4285f4;
}

/* 表单内容 */
.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 表单组 */
.form-group {
    margin-bottom: 12px;
}

/* 输入框包装器 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* 输入框图标 */
.input-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
}

/* 通用输入框样式 */
.login-container .form-input,
.login-container input.form-input {
    width: 100% !important;
    height: 44px !important;
    padding: 12px 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #fff !important;
    transition: all 0.3s ease-in-out !important;
    box-sizing: border-box !important;
}

.form-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-input.error {
    border-color: #ea4335;
    box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.1);
}

/* 手机号输入特殊样式 */
.phone-input-wrapper {
    position: relative;
}

.country-code-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.country-code-prefix::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    margin-left: 8px;
}

.login-container .phone-input,
.login-container input.phone-input {
    padding-left: 60px !important;
    padding-right: 16px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* 验证码输入组 */
.verification-input-wrapper {
    position: relative;
}

.login-container .verification-input,
.login-container input.verification-input {
    padding-left: 40px !important;
    padding-right: 110px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.send-code-link {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4285f4;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    padding: 12px 16px;
    border-radius: 4px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-code-link:hover:not(:disabled) {
    background: rgba(66, 133, 244, 0.1);
    color: #1a73e8;
}

.send-code-link:disabled {
    color: #ccc;
    cursor: not-allowed;
    background: none;
}

.send-code-link .link-countdown {
    color: #999;
    font-size: 11px;
}

/* 登录/提交按钮 */
.signin-btn {
    width: 100%;
    height: 48px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 24px;
}

.signin-btn:hover:not(:disabled) {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.signin-btn:disabled {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 错误和成功消息 */
.error-message-below-btn {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.error-message-below-btn i {
    display: none;
}

.success-message-below-btn {
    color: #27ae60;
    font-size: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.success-message-below-btn i {
    display: none;
}

/* 用户协议提示 */
.terms-notice {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 16px;
    line-height: 1.5;
}

.terms-notice .terms-link {
    color: #4285f4;
    text-decoration: none;
}

.terms-notice .terms-link:hover {
    text-decoration: underline;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 12px;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-body ul,
.modal-body ol {
    color: #666;
    line-height: 1.6;
    padding-left: 24px;
    margin-bottom: 12px;
}

/* 成功容器 */
.success-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.success-content {
    margin-bottom: 40px;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #10b981;
    margin: 0 0 16px 0;
}

.success-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.success-message strong {
    color: #333;
    font-weight: 600;
}

/* 操作按钮 */
.action-buttons {
    width: 100%;
}

.next-step-btn {
    width: 100%;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 42px;
    box-sizing: border-box;
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 1.2 !important;
    padding: 1px 24px !important;
}

.next-step-btn:hover:not(:disabled) {
    background: #3367d6;
    color: white;
    text-decoration: none;
}

.next-step-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) and (min-width: 481px) {
    .login-container {
        padding: 32px 24px !important;
        margin: 16px !important;
        border-radius: 8px !important;
    }

    .page-title {
        margin: 40px 0 30px 0;
    }

    .page-title h1 {
        font-size: 22px;
    }

    .steps-indicator {
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-connector {
        width: 60px;
        margin: -22px 12px 0 12px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 0;
        padding: 30px 30px !important;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: #fff;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .back-button {
        top: 16px;
        left: 16px;
    }

    .back-button a {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .page-title {
        margin: 0 0 30px 0;
    }

    .page-title h1 {
        font-size: 20px;
    }

    .steps-indicator {
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label {
        font-size: 11px;
        max-width: 60px;
    }

    .step-connector {
        width: 40px;
        margin: -20px 8px 0;
    }

    .success-container {
        padding: 20px 0;
    }

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

    .success-message {
        font-size: 13px;
    }
}

