/* 注册页面样式 */

/* 主体布局 */
.register-main {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.register-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 10;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

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

/* 注册头部 */
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.register-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.register-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e1e5e9;
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e1e5e9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* 表单步骤 */
.form-step {
    display: none;
    animation: fadeInSlide 0.5s ease;
}

.form-step.active {
    display: block;
}

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

/* 表单样式 */
.register-form {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--primary-color);
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

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

.strength-bar {
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

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

.strength-fill.weak {
    width: 25%;
    background: #dc3545;
}

.strength-fill.fair {
    width: 50%;
    background: var(--accent-color);
}

.strength-fill.good {
    width: 75%;
    background: #ffc107;
}

.strength-fill.strong {
    width: 100%;
    background: #28a745;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 技能标签 */
.skills-input {
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    animation: skillPop 0.3s ease;
}

@keyframes skillPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.skill-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.skill-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.skill-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: #f8f9fa;
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 字符计数 */
.char-count {
    text-align: right;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 邮箱验证步骤 */
.verification-content {
    text-align: center;
    padding: 2rem 0;
}

.verification-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.verification-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.verification-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.verification-input {
    max-width: 300px;
    margin: 0 auto 1rem;
}

.verification-input input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
}

.verification-actions {
    margin-top: 1rem;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.resend-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}

.resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.countdown {
    color: var(--text-muted);
}

/* 表单导航 */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prev-btn {
    background: #f8f9fa;
    color: var(--text-dark);
    border: 2px solid #e1e5e9;
}

.prev-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.next-btn,
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    flex: 1;
}

.next-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

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

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    display: block !important;
}

/* 协议和条款 */
.terms-section {
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.terms-link,
.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-link:hover,
.privacy-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 注册页脚 */
.register-footer {
    text-align: center;
}

.register-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.register-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 背景装饰 */
.register-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.register-bg .bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 8s ease-in-out infinite;
}

.register-bg .shape-1 {
    width: 120px;
    height: 120px;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.register-bg .shape-2 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 10%;
    animation-delay: 2s;
}

.register-bg .shape-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.register-bg .shape-4 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* 错误消息 */
.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Toast 消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.toast.success .toast-content {
    border-left-color: #28a745;
}

.toast.error .toast-content {
    border-left-color: #dc3545;
}

.toast.warning .toast-content {
    border-left-color: var(--accent-color);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: var(--accent-color);
}

.toast-message {
    color: var(--text-dark);
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .register-main {
        padding: 1rem;
        min-height: calc(100vh - 60px);
    }

    .register-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .register-header h1 {
        font-size: 1.75rem;
    }

    .register-icon {
        font-size: 3rem;
    }

    .step-indicator {
        padding: 0 0.5rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        margin-bottom: 1.5rem;
    }

    .form-navigation {
        flex-direction: column;
    }

    .nav-btn {
        padding: 0.875rem 1.5rem;
    }

    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 1.5rem 1rem;
    }

    .step-indicator {
        padding: 0;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .verification-content {
        padding: 1rem 0;
    }

    .verification-icon {
        font-size: 3rem;
    }

    .verification-content h3 {
        font-size: 1.25rem;
    }

    .verification-input input {
        font-size: 1.25rem;
        letter-spacing: 0.25rem;
    }

    .nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
} 