/* 密码重置页面通用样式 */

/* 整体容器优化 */
.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;
}

/* 返回按钮 */
.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;
}

/* 步骤指示器 */
.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;
}

/* 说明文字 */
.description {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* 表单内容 */
.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 通用输入框样式 */
.form-input {
    width: 100%;
    padding: 20px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: none;
    height: 42px;
    box-sizing: border-box;
}

.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;
}

/* 主按钮样式 - next-step-btn */
.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;
    margin-top: 30px;
    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;
}

/* 语言选择器 - 与Login.cshtml保持一致 */
.language-selector {
    text-align: center;
    margin-top: 60px;
}

/* 自定义下拉菜单 */
.custom-dropdown {
    position: relative;
    display: inline-block;
    user-select: none;
}

.dropdown-current {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 80px;
    justify-content: center;
}

.dropdown-current:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-options {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    min-width: 80px;
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s ease;
    text-align: center;
}

.dropdown-option:hover {
    background: #f8f9fa;
}

.dropdown-option.selected {
    background: #e3f2fd;
    color: #1976d2;
}

/* 响应式设计 */
@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;
    }

    .form-input {
        height: 52px;
        font-size: 16px;
    }

    .next-step-btn {
        margin-top: 30px;
    }

    .language-selector {
        margin-top: auto;
        padding-bottom: 20px;
    }
}
