/* Muhasebe180 Register Page Styles */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0e27;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

.register-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    background-size: 200% 200%;
    background-position: center;
    /* Perf: surekli calisan gradient animasyonu dusuk GPU'lu PC'lerde scroll'u kasiyordu.
       Statik birakildi ve kendi compositor katmanina izole edildi. */
    transform: translateZ(0);
    will-change: transform;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.content-wrapper { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem; }

.register-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.logo-section { text-align: center; margin-bottom: 2rem; }
.logo-section img { max-height: 150px; max-width: 100%; object-fit: contain; }
.logo-section h1 { font-size: 2rem; font-weight: 700; margin-top: 1rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Progress Bar */
.progress-container { margin-bottom: 2rem; }
.progress-steps { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-item::after { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.2); z-index: 0; }
.step-item:last-child::after { display: none; }
.step-item.active::after { background: #667eea; }
.step-number { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.6); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.5rem; position: relative; z-index: 1; font-weight: 600; }
.step-item.active .step-number { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; }
.step-item.completed .step-number { background: #4ade80; color: #ffffff; }
.step-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.step-item.active .step-label { color: #ffffff; font-weight: 600; }

/* Account Type */
.account-type-selector { display: flex; gap: 1rem; margin-bottom: 2rem; }
.account-type-btn { flex: 1; padding: 1.5rem; background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 15px; color: rgba(255, 255, 255, 0.7); cursor: pointer; transition: all 0.3s; text-align: center; }
.account-type-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-3px); }
.account-type-btn.active { background: rgba(102, 126, 234, 0.2); border-color: #667eea; color: #ffffff; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); }
.account-type-btn i { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
.account-type-btn h4 { margin-bottom: 0.5rem; }

/* Form */
.form-label { color: #e0e0e0; font-weight: 500; margin-bottom: 0.5rem; }
.form-control, .form-select { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; padding: 0.75rem 1rem; border-radius: 10px; transition: all 0.3s; }
.form-control:focus, .form-select:focus { background: rgba(255, 255, 255, 0.15); border-color: #667eea; color: #ffffff; box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25); }
.form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-select option { background: #1a1f3a; color: #ffffff; padding: 0.5rem; }
.form-select option:checked { background: #667eea; color: #ffffff; }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px; padding-right: 2.5rem; }
.form-check-input { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); }
.form-check-input:checked { background-color: #667eea; border-color: #667eea; }
.form-check-label { color: rgba(255, 255, 255, 0.9); }

/* SMS */
.sms-verification-box { background: rgba(102, 126, 234, 0.1); border: 1px solid rgba(102, 126, 234, 0.3); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; }
.sms-code-input { font-size: 1.5rem; text-align: center; letter-spacing: 0.5rem; font-weight: 600; }
.cooldown-timer { color: #ff6b6b; font-weight: 600; }

/* Navigation */
.step-navigation { display: flex; justify-content: space-between; margin-top: 2rem; }
.btn-step { padding: 0.75rem 2rem; border-radius: 10px; font-weight: 600; transition: all 0.3s; }
.btn-step-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; color: #ffffff; }
.btn-step-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4); }
.btn-step-secondary { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff; }
.btn-step-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.alert { border-radius: 10px; border: none; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.alert-danger { background: rgba(220, 53, 69, 0.2); color: #ff6b6b; border: 1px solid rgba(220, 53, 69, 0.3); }
.alert-success { background: rgba(40, 167, 69, 0.2); color: #4ade80; border: 1px solid rgba(40, 167, 69, 0.3); }
.alert-info { background: rgba(13, 202, 240, 0.2); color: #4dd0e1; border: 1px solid rgba(13, 202, 240, 0.3); }

.step-content { display: none; }
.step-content.active { display: block; }

.summary-item { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.summary-item:last-child { border-bottom: none; }

.contract-preview { max-height: 300px; overflow-y: auto; padding: 1rem; background: rgba(255, 255, 255, 0.05); border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.1); }

#packagesContainer .card { background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; color: rgba(255, 255, 255, 0.9) !important; transition: all 0.3s; }
#packagesContainer .card:hover { background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(102, 126, 234, 0.5) !important; transform: translateY(-3px); }
#packagesContainer .card.border-primary { border: 2px solid #667eea !important; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important; }
#packagesContainer .card-header { background: rgba(102, 126, 234, 0.3) !important; border-bottom: 1px solid rgba(102, 126, 234, 0.5) !important; color: #ffffff !important; }
#packagesContainer .card.border-primary .card-header { background: rgba(102, 126, 234, 0.4) !important; }
#packagesContainer .card-body { background: transparent !important; color: rgba(255, 255, 255, 0.9) !important; }
#packagesContainer .card-body h3 { color: #667eea !important; }
#packagesContainer .card-body p { color: rgba(255, 255, 255, 0.7) !important; }
#packagesContainer .card-body ul, #packagesContainer .card-body li { color: rgba(255, 255, 255, 0.9) !important; }
#packagesContainer .card-body .text-success { color: #4ade80 !important; }

.contract-preview h2, .contract-preview h3, .contract-preview h4 { color: #ffffff !important; }
.contract-preview p, .contract-preview li, .contract-preview div { color: rgba(255, 255, 255, 0.9) !important; }
.contract-preview ul, .contract-preview ol { color: rgba(255, 255, 255, 0.9) !important; }
.contract-preview strong { color: #ffffff !important; }
.contract-preview { color: rgba(255, 255, 255, 0.9) !important; }

.modal-body h2, .modal-body h3, .modal-body h4 { color: #ffffff !important; }
.modal-body p, .modal-body li, .modal-body div { color: rgba(255, 255, 255, 0.9) !important; }

@media (max-width: 768px) {
    .register-container { padding: 2rem 1.5rem; }
    .account-type-selector { flex-direction: column; }
    .phone-sms-group { flex-direction: column; }
    .phone-sms-group .btn { width: 100%; margin-top: 0.5rem; border-radius: 10px !important; }
    .sms-verification-box { padding: 1rem; }
    .sms-code-input { font-size: 1.35rem; }
}

/* Erisilebilirlik + perf: "hareketi azalt" acikken animasyon/gecisleri kapat. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
