/* HizmetX — Premium registration (extends giris.css tokens) */

body.gx-page--register {
    height: 100vh;
    overflow: hidden;
}

.gx-shell--register {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.gx-hero--register {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    align-items: flex-start;
    padding-top: clamp(32px, 4vw, 48px);
}

.gx-main--register {
    align-items: flex-start;
    height: 100vh;
    max-height: 100vh;
    padding-top: clamp(20px, 3vw, 36px);
    padding-bottom: clamp(24px, 4vw, 40px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.gx-card--register {
    width: min(560px, 100%);
}

.gx-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gx-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.gx-back:hover {
    color: var(--gx-accent);
}

.gx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
}

.gx-badge::before {
    content: "✦";
    font-size: 10px;
    color: #22c55e;
}

.gx-section {
    margin: 24px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--gx-border);
}

.gx-section:first-of-type {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.gx-section__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--gx-text);
}

.gx-section__desc {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--gx-muted);
    line-height: 1.5;
}

.gx-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gx-field--req .gx-label::after {
    content: " *";
    color: var(--gx-danger);
    font-weight: 700;
}

.gx-formselect,
.formselect {
    width: 100% !important;
    min-height: 46px;
    padding: 11px 14px !important;
    border: 1px solid var(--gx-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--gx-text);
    outline: none;
    appearance: auto;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gx-formselect:focus,
.formselect:focus {
    border-color: var(--gx-accent) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
}

.gx-alert--success {
    color: #15803d !important;
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.gx-hero--register .gx-hero__copy h1 {
    font-size: clamp(26px, 2.8vw, 36px);
}

.gx-steps {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.gx-steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
}

.gx-steps__num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fb923c;
}

.gx-steps__text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.gx-steps__text span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.gx-submit--register {
    margin-top: 20px !important;
}

.is-busy {
    opacity: 0.7;
    cursor: progress !important;
    pointer-events: none;
}

button.is-busy {
    cursor: progress !important;
}

.gx-login-link {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--gx-muted);
}

.gx-login-link a {
    color: var(--gx-text);
    font-weight: 700;
    text-decoration: none;
}

.gx-login-link a:hover {
    color: var(--gx-accent);
}

@media (max-width: 960px) {
    body.gx-page--register {
        height: auto;
        overflow: auto;
    }

    .gx-shell--register {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .gx-hero--register {
        position: static;
        height: auto;
        max-height: none;
        padding-bottom: 20px;
    }

    .gx-steps {
        display: none;
    }

    .gx-main--register {
        height: auto;
        max-height: none;
        overflow: visible;
        margin-top: -8px;
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .gx-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* === E-posta doğrulama adımı === */
.gx-input--code {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .5em;
    padding-left: .5em;
}

.gx-alert--success {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #15803d;
    display: block;
}

/* === Premium başarı ekranı === */
.gx-success {
    text-align: center;
    padding: 18px 8px 8px;
    animation: gxSuccessIn .45s ease;
}

.gx-success__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.gx-success__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #0f172a;
}

.gx-success__lead {
    color: #475569;
    line-height: 1.65;
    margin: 0 auto 18px;
    max-width: 420px;
}

.gx-success__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 420px;
    text-align: left;
}

.gx-success__list li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: #334155;
    border-bottom: 1px solid #eef2f7;
}

.gx-success__list li:last-child {
    border-bottom: 0;
}

.gx-success__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #22c55e;
    font-weight: 800;
}

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

/* --- Yasal sözleşme onayları --- */
.gx-section--legal {
    margin-top: 8px;
}

.gx-legal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.gx-legal-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: default;
}

.gx-legal-item.is-accepted {
    border-color: #86efac;
    background: #f0fdf4;
}

.gx-legal-check {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #16a34a;
    flex-shrink: 0;
}

.gx-legal-item__text {
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.gx-legal-link {
    color: #c2410c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gx-legal-link:hover {
    color: #9a3412;
}

body.gx-legal-open {
    overflow: hidden;
}

.gx-legal-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gx-legal-modal[hidden] {
    display: none !important;
}

.gx-legal-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.gx-legal-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.gx-legal-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.gx-legal-modal__head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.gx-legal-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
}

.gx-legal-modal__body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 18px 20px;
    max-height: 52vh;
    color: #1e293b;
    line-height: 1.65;
    font-size: 14px;
    scroll-behavior: smooth;
}

.gx-legal-modal__body--hint {
    box-shadow: inset 0 0 0 2px #f97316;
}

.gx-legal-modal__body h2,
.gx-legal-modal__body h3 {
    margin: 0 0 12px;
    color: #0f172a;
}

.gx-legal-modal__body p {
    margin: 0 0 12px;
}

.gx-legal-loading {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gx-legal-modal__foot {
    border-top: 1px solid #e2e8f0;
    padding: 14px 18px 16px;
    background: #f8fafc;
}

.gx-legal-modal__warn {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 13px;
    font-weight: 600;
}

.gx-legal-modal__warn.is-shake {
    animation: gxLegalShake 0.45s ease;
}

@keyframes gxLegalShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.gx-legal-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.gx-legal-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.gx-legal-btn--ghost {
    background: #e2e8f0;
    color: #334155;
}

.gx-legal-btn--primary {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
}

.gx-legal-btn--primary:hover {
    filter: brightness(1.05);
}

@media (max-width: 640px) {
    .gx-legal-modal__body {
        max-height: 46vh;
    }

    .gx-legal-modal__actions {
        flex-direction: column-reverse;
    }

    .gx-legal-btn {
        width: 100%;
    }
}

/* Luxury message box */
.gx-msgbox[hidden] { display: none !important; }
.gx-msgbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gx-msgbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 28, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gx-msgbox__card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    border-radius: 22px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(249, 115, 22, 0.16), transparent 55%),
        radial-gradient(100% 70% at 100% 0%, rgba(99, 102, 241, 0.18), transparent 50%),
        linear-gradient(165deg, #0f172a 0%, #111827 45%, #1e1b4b 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(249, 115, 22, 0.08) inset;
    padding: 28px 26px 22px;
    color: #f8fafc;
    animation: gxMsgIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes gxMsgIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
.gx-msgbox__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 26px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.gx-msgbox--error .gx-msgbox__icon {
    color: #fda4af;
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(251, 113, 133, 0.35);
    box-shadow: 0 0 32px rgba(244, 63, 94, 0.25);
}
.gx-msgbox--success .gx-msgbox__icon {
    color: #86efac;
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 32px rgba(34, 197, 94, 0.22);
}
.gx-msgbox--info .gx-msgbox__icon {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(251, 146, 60, 0.4);
    box-shadow: 0 0 32px rgba(249, 115, 22, 0.22);
}
.gx-msgbox__eyebrow {
    margin: 0 0 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.55);
}
.gx-msgbox__title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.gx-msgbox__text {
    margin: 0 0 22px;
    text-align: center;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.88);
}
.gx-msgbox__actions {
    display: flex;
    justify-content: center;
}
.gx-msgbox__btn {
    min-width: 140px;
    border: 0;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c 40%, #6366f1);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}
.gx-msgbox__btn:hover { filter: brightness(1.06); }
.gx-msgbox__btn:active { transform: translateY(1px); }
body.gx-msgbox-open { overflow: hidden; }

.gx-field.is-msg-focus .gx-input {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18) !important;
}

