﻿/* Aİ-SEO2 / B2 (12.10.2026) — mobil hız + CLS.
   Baloo 2 artık render-blocking DEĞİL (Register.cshtml: preload + onload, display=swap). Font gelene kadar metin
   "Baloo 2 Yedek" ile çizilir: yerel Arial/Roboto, Baloo 2 ölçülerine ayarlı (size-adjust / ascent / descent; 12.10'da
   tarayıcıda ölçüldü: Baloo 2 ascent 1,08 em, descent 0,52 em; genişlik Arial'ın %94,4'ü (400), %92'si (600-700)).
   Böylece font değişince satırlar kırılmaz/kaymaz (GSC masaüstü CLS 0,13'ün olası kaynağı). Eski yedek 'cursive'
   idi (Windows'ta Comic Sans). */
@font-face {
    font-family: 'Baloo 2 Yedek';
    font-style: normal;
    font-weight: 100 500;
    src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Roboto'), local('Roboto-Regular');
    size-adjust: 94.4%;
    ascent-override: 114.4%;
    descent-override: 55.1%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Baloo 2 Yedek';
    font-style: normal;
    font-weight: 501 900;
    src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold'), local('Roboto-Bold');
    size-adjust: 92%;
    ascent-override: 117.4%;
    descent-override: 56.5%;
    line-gap-override: 0%;
}

/* Remix Icon CSS'i artık async: o gelene kadar <i class="ri-..."> boştur (0 genişlik), gelince yazıyı yana iterdi.
   Kutunun genişliği baştan ayrılır (Remix glifleri 1em kare). */
[class^="ri-"], [class*=" ri-"] {
    display: inline-block;
    width: 1em;
}

        body {
            margin: 0;
            padding: 0;
            font-family: 'Baloo 2', 'Baloo 2 Yedek', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
            background: linear-gradient(135deg, #f8f7fc 0%, #f0eef9 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 10px;
        }

        .register-wrapper {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 600px;
            padding: 30px 20px;
            margin: 20px auto;
        }

        /* Logo stili - Login sayfası ile aynı */
        .fp-logo {
            font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            font-size: 48px;
            font-weight: 600;
            color: #212530;
            margin-bottom: 10px;
            display: inline-block;
            text-align: center;
            width: 100%;
        }

.register-title {
            text-align: center;
            color: #666;
            font-size: 16px;
            margin-bottom: 30px;
        }

        .form-section {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px 15px;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 15px;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i {
            color: #667eea;
            font-size: 18px;
        }

        .form-label {
            font-weight: 600;
            color: #4a5568;
            font-size: 13px;
            margin-bottom: 6px;
        }

        .form-control {
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            padding: 10px 12px;
            font-size: 14px;
            transition: all 0.2s;
        }

        .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-control:disabled {
            background-color: #f7fafc;
        }

        .text-danger {
            color: #e53e3e !important;
        }

        .btn-register {
            width: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            color: #fff;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
        }

        .btn-register:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
        }

        .btn-register:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Müşteri Tipi Seçici */
        .customer-type-selector {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .type-option {
            flex: 1;
            min-width: 180px;
            cursor: pointer;
            position: relative;
            display: flex;
        }

        /* display:none yerine görünmez: klavye (Tab/ok tuşları) ile seçilebilsin */
        .type-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 1px;
            height: 1px;
            pointer-events: none;
        }

        .type-option input:focus-visible + .type-card {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        .type-card {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            transition: all 0.3s ease;
            background: #fff;
        }

        .type-option input:checked + .type-card {
            border-color: #667eea;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .type-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            background: #f1f5f9;
            color: #64748b;
            flex-shrink: 0;
        }

        .type-option input:checked + .type-card .type-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .type-info strong {
            display: block;
            font-size: 14px;
            color: #1e293b;
        }

        .type-info small {
            display: block;
            font-size: 12px;
            line-height: 1.3;
            color: #64748b;
        }

        /* Y3: seçimin altındaki yönlendirme alanı (ipucu ya da Bireysel notu) */
        .type-hint-slot {
            margin-top: 12px;
        }

        .type-hint,
        .type-note-text {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            margin: 0;
            font-size: 13px;
            line-height: 1.4;
            color: #475569;
        }

        .type-hint i,
        .type-note-text i {
            color: #667eea;
            font-size: 15px;
            line-height: 1.4;
            flex-shrink: 0;
        }

        .type-note {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px 12px;
            padding: 10px 12px;
            border: 1px solid rgba(102, 126, 234, 0.28);
            border-radius: 10px;
            background: rgba(102, 126, 234, 0.07);
            animation: type-note-in 0.22s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .type-hint[hidden],
        .type-note[hidden] {
            display: none;
        }

        .type-note-btn {
            min-height: 36px;
            padding: 6px 14px;
            border: 1px solid #667eea;
            border-radius: 8px;
            background: #fff;
            color: #4c5bd4;
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.15s, color 0.15s;
        }

        .type-note-btn:hover {
            background: #4c5bd4;
            border-color: #4c5bd4;
            color: #fff;
        }

        .type-note-btn:focus-visible {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        @keyframes type-note-in {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            .type-note { animation: none; }
        }

        .login-link {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: #666;
        }

        .login-link a {
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
        }

        .login-link a:hover {
            text-decoration: underline;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .register-wrapper {
                padding: 25px 15px;
            }

            .fp-logo {
                font-size: 32px;
            }

            .form-section {
                padding: 15px 12px;
            }

            .section-title {
                font-size: 14px;
            }
        }
