/* ============================================
   Register Page - Sayfa Ozel Stiller
   ============================================ */

/* Container */
.register-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Sol Panel */
.register-left {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 40%, #C62828 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

    .register-left::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.register-left-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.register-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.text-ntn {
    color: #FF6B6B;
    font-weight: 800;
}

.register-logo-sub {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.register-welcome {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 32px;
}

.register-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .register-features li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        font-size: 15px;
        opacity: 0.95;
    }

        .register-features li i {
            font-size: 20px;
            color: var(--accent, #25D366);
            flex-shrink: 0;
        }

/* Sag Panel */
.register-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    overflow-y: auto;
    background: var(--bg-secondary, #fff);
}

.register-form-wrapper {
    width: 100%;
    max-width: 480px;
}

.register-form-header {
    margin-bottom: 32px;
}

    .register-form-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    .register-form-header p {
        font-size: 14px;
        color: var(--text-secondary);
    }

/* Form Elements */
.form-row {
    display: flex;
    gap: 16px;
}

    .form-row .form-group {
        flex: 1;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 6px;
    }

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #E9EDEF);
    border-radius: var(--radius-md, 12px);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

    .form-input:focus {
        border-color: var(--primary, #075E54);
        box-shadow: 0 0 0 3px rgba(7, 94, 84, 0.1);
    }

    .form-input::placeholder {
        color: var(--text-muted, #8696A0);
    }

    .form-input.error {
        border-color: var(--danger, #EF4444);
    }

/* Select (Il/Ilce dropdown) */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-secondary, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238696A0' d='M6 8.825L.35 3.175 1.175 2.35 6 7.175 10.825 2.35l.825.825z'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
    padding-right: 36px;
    cursor: pointer;
}

    .form-select:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background-color: var(--bg-tertiary, #F0F2F5);
    }

/* Textarea (Adres) */
.form-textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 160px;
    line-height: 1.5;
}

.textarea-icon-wrapper > i:first-child {
    top: 16px;
    transform: none;
}

/* Input with Icon */
.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper > i:first-child {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 16px;
        pointer-events: none;
        z-index: 1;
    }

.form-input.with-icon {
    padding-left: 42px;
}

.form-input.with-toggle {
    padding-right: 44px;
}

/* Password Toggle */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
    z-index: 2;
}

    .password-toggle-btn:hover {
        color: var(--text-primary);
    }

/* ============================================
   Telefon - Ulke Kodu Secici
   ============================================ */

.phone-input-group {
    display: flex;
    border: 2px solid var(--border-color, #E9EDEF);
    border-radius: var(--radius-md, 12px);
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

    .phone-input-group:focus-within {
        border-color: var(--primary, #075E54);
        box-shadow: 0 0 0 3px rgba(7, 94, 84, 0.1);
    }

    .phone-input-group.error {
        border-color: var(--danger, #EF4444);
    }

.country-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 10px 12px 14px;
    background: var(--bg-tertiary, #F0F2F5);
    border: none;
    border-right: 1px solid var(--border-color, #E9EDEF);
    border-radius: var(--radius-md, 12px) 0 0 var(--radius-md, 12px);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-primary);
    transition: background 0.2s;
}

    .country-selector-btn:hover {
        background: var(--border-color, #E9EDEF);
    }

.country-flag {
    font-size: 18px;
    line-height: 1;
}

.country-dial {
    font-weight: 600;
    font-size: 13px;
}

.country-chevron {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

    .country-chevron.open {
        transform: rotate(180deg);
    }

.phone-number-input {
    flex: 1;
    border: none !important;
    border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0 !important;
    box-shadow: none !important;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    letter-spacing: 0.3px;
    min-width: 0;
}

    .phone-number-input:focus {
        box-shadow: none !important;
        border: none !important;
    }

/* Ulke Dropdown */
.country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 320px;
    max-height: 320px;
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #E9EDEF);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.country-search-wrapper {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid var(--border-color, #E9EDEF);
}

    .country-search-wrapper > i {
        position: absolute;
        left: 22px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 14px;
        pointer-events: none;
    }

.country-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-color, #E9EDEF);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-primary, #F0F2F5);
    color: var(--text-primary);
    outline: none;
    box-sizing: border-box;
}

    .country-search-input:focus {
        border-color: var(--primary, #075E54);
    }

.country-list {
    overflow-y: auto;
    flex: 1;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}

    .country-item:hover {
        background: var(--bg-hover, #F0F2F5);
    }

    .country-item.active {
        background: rgba(7, 94, 84, 0.08);
    }

.country-item-flag {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.country-item-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.country-item-dial {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.country-no-result {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.password-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color, #E9EDEF);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

    .password-strength-fill.weak {
        width: 33%;
        background: var(--danger, #EF4444);
    }

    .password-strength-fill.medium {
        width: 66%;
        background: var(--warning, #F59E0B);
    }

    .password-strength-fill.strong {
        width: 100%;
        background: var(--accent, #25D366);
    }

.password-strength-text {
    font-size: 12px;
    font-weight: 500;
    min-width: 40px;
}

    .password-strength-text.weak {
        color: var(--danger, #EF4444);
    }

    .password-strength-text.medium {
        color: var(--warning, #F59E0B);
    }

    .password-strength-text.strong {
        color: var(--accent, #25D366);
    }

/* Form Error */
.form-error {
    display: block;
    font-size: 12px;
    color: var(--danger, #EF4444);
    margin-top: 4px;
    min-height: 16px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary, #075E54);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.link-primary {
    color: var(--primary, #075E54);
    text-decoration: none;
    font-weight: 600;
}

    .link-primary:hover {
        text-decoration: underline;
    }

.text-danger {
    color: var(--danger, #EF4444);
}

/* Button */
.btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--primary, #075E54);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--primary-light, #128C7E);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(7, 94, 84, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Login Link */
.register-login-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   Gizlilik / Kullanim Kosullari Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-container {
    background: var(--bg-secondary, #fff);
    border-radius: var(--radius-lg, 16px);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

    .modal-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
    }

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: var(--text-primary);
    }

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

    .modal-footer .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

/* ============================================
   Sonuc Modallari (Basari / Hata)
   ============================================ */

.result-modal-container {
    max-width: 400px;
    padding: 0;
    overflow: hidden;
}

.result-modal-body {
    padding: 40px 32px;
    text-align: center;
}

    .result-modal-body h3 {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 8px 0;
    }

    .result-modal-body p {
        font-size: 14px;
        color: var(--text-secondary);
        margin: 0 0 24px 0;
        line-height: 1.5;
    }

/* Sonuc Ikon */
.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .result-icon i {
        font-size: 36px;
    }

.result-icon-success {
    background: rgba(37, 211, 102, 0.12);
}

    .result-icon-success i {
        color: #25D366;
    }

.result-icon-error {
    background: rgba(239, 68, 68, 0.12);
}

    .result-icon-error i {
        color: var(--danger, #EF4444);
    }

/* Geri Sayim */
.countdown-wrapper {
    display: flex;
    justify-content: center;
}

.countdown-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary, #075E54);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    animation: pulse-countdown 1s ease-in-out infinite;
}

@keyframes pulse-countdown {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Hata Modal Butonu */
.btn-modal-action {
    display: inline-block;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .register-left {
        display: none;
    }

    .register-right {
        flex: 1;
        padding: 32px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .country-dropdown {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .register-right {
        padding: 24px 16px;
    }

    .register-form-header h2 {
        font-size: 1.25rem;
    }

    .country-dropdown {
        width: 260px;
    }

    .result-modal-container {
        max-width: 320px;
    }

    .result-modal-body {
        padding: 32px 20px;
    }
}

/* ============================================
   Dark Mode
   ============================================ */

[data-theme="dark"] .register-right {
    background: var(--bg-secondary);
}

[data-theme="dark"] .form-input {
    background: var(--input-bg, #2A3942);
    border-color: var(--border-color, #2A3942);
    color: var(--text-primary);
}

    [data-theme="dark"] .form-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(7, 94, 84, 0.2);
    }

[data-theme="dark"] .form-select {
    background: var(--input-bg, #2A3942) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238696A0' d='M6 8.825L.35 3.175 1.175 2.35 6 7.175 10.825 2.35l.825.825z'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
}

    [data-theme="dark"] .form-select:disabled {
        background-color: var(--bg-primary, #111B21);
    }

[data-theme="dark"] .form-textarea {
    background: var(--input-bg, #2A3942);
}

[data-theme="dark"] .phone-input-group {
    border-color: var(--border-color, #2A3942);
}

    [data-theme="dark"] .phone-input-group:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(7, 94, 84, 0.2);
    }

[data-theme="dark"] .country-selector-btn {
    background: var(--bg-primary, #111B21);
    border-right-color: var(--border-color, #2A3942);
}

    [data-theme="dark"] .country-selector-btn:hover {
        background: var(--border-color, #2A3942);
    }

[data-theme="dark"] .phone-number-input {
    background: var(--input-bg, #2A3942);
    color: var(--text-primary);
}

[data-theme="dark"] .country-dropdown {
    background: var(--bg-secondary, #1F2C34);
    border-color: var(--border-color, #2A3942);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .country-search-input {
    background: var(--bg-primary, #111B21);
    border-color: var(--border-color, #2A3942);
    color: var(--text-primary);
}

[data-theme="dark"] .country-item:hover {
    background: var(--bg-primary, #111B21);
}

[data-theme="dark"] .country-item.active {
    background: rgba(7, 94, 84, 0.15);
}

[data-theme="dark"] .modal-container {
    background: var(--bg-secondary);
}

[data-theme="dark"] .result-modal-container {
    background: var(--bg-secondary, #1F2C34);
}
