/* Register Page Styles */
.register-section {
    margin-top: 72px;
    min-height: calc(100vh - 72px - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: var(--gray-100);
}

.register-container {
    width: 100%;
    max-width: 540px;
}

.register-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.register-header {
    text-align: center;
    margin-bottom: 36px;
}

.register-header .logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.register-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.register-header p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.step-item.completed .step-number {
    background: #22c55e;
    color: var(--white);
}

.step-item.completed .step-number::after {
    content: '';
    display: block;
}

.step-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    transition: all 0.3s;
}

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

.step-item.completed .step-label {
    color: #22c55e;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-300);
    margin: 0 12px;
    transition: all 0.3s;
}

.step-line.completed {
    background: #22c55e;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 40, 160, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-500);
}

.form-group input.error {
    border-color: #ef4444;
}

.form-group input.success {
    border-color: #22c55e;
}

.form-group input:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-group .input-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.form-group .input-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

.form-group .input-success {
    font-size: 12px;
    color: #22c55e;
    margin-top: 4px;
    display: none;
}

.form-group .input-error.show,
.form-group .input-success.show {
    display: block;
}

/* Input with Button */
.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn input {
    flex: 1;
}

.input-with-btn .btn-inline {
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.input-with-btn .btn-inline:hover {
    background: var(--primary-dark);
}

.input-with-btn .btn-inline:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.input-with-btn .btn-inline.loading {
    position: relative;
    color: transparent;
}

.input-with-btn .btn-inline.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Timer */
.verification-timer {
    font-size: 13px;
    color: #ef4444;
    margin-top: 8px;
    display: none;
}

.verification-timer.show {
    display: block;
}

/* Password Strength */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.password-strength .bar {
    flex: 1;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    transition: background 0.2s;
}

.password-strength.weak .bar:nth-child(1) {
    background: #ef4444;
}

.password-strength.medium .bar:nth-child(1),
.password-strength.medium .bar:nth-child(2) {
    background: #f59e0b;
}

.password-strength.strong .bar:nth-child(1),
.password-strength.strong .bar:nth-child(2),
.password-strength.strong .bar:nth-child(3) {
    background: #22c55e;
}

.password-strength.very-strong .bar {
    background: #22c55e;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    color: var(--gray-500);
}

/* Terms */
.terms-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-item span {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.checkbox-item a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-item a:hover {
    color: var(--primary-dark);
}

.checkbox-item.all-agree {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 4px;
}

.checkbox-item.all-agree span {
    font-weight: 600;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-prev {
    flex: 1;
    padding: 16px;
    background: var(--white);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-next, .register-btn {
    flex: 2;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next:hover, .register-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-next:disabled, .register-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

.btn-next.full {
    flex: 1;
}

/* Footer */
.register-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--gray-500);
}

.register-footer a {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}

.register-footer a:hover {
    color: var(--primary-dark);
}

/* Complete Step */
.complete-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.complete-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.complete-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 12px;
}

.complete-desc {
    font-size: 15px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .register-card {
        padding: 32px 24px;
    }

    .register-header .logo-text {
        font-size: 24px;
    }

    .register-header h1 {
        font-size: 20px;
    }

    .step-label {
        display: none;
    }

    .step-line {
        width: 30px;
        margin: 0 8px;
    }

    .input-with-btn {
        flex-direction: column;
    }

    .input-with-btn .btn-inline {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-prev, .btn-next, .register-btn {
        flex: none;
        width: 100%;
    }
}
