﻿.signup-container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}

.signup-main-card {
    overflow: hidden;
    border: 1px solid #e0e6ed;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.signup-hero {
    position: relative;
    padding: 30px 34px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient( 135deg, #063c8a 0%, #0c58b5 55%, #1473e6 100% );
}

    .signup-hero::after {
        position: absolute;
        top: -85px;
        right: -45px;
        width: 250px;
        height: 250px;
        border: 45px solid rgba(255, 255, 255, 0.07);
        border-radius: 50%;
        content: "";
    }

.signup-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 22px;
}

.signup-logo-wrapper {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 150px;
    min-height: 94px;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.signup-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.signup-title {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
}

.signup-subtitle {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.65;
}

.signup-form-area {
    padding: 28px;
}

.signup-section {
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

    .signup-section:last-child {
        margin-bottom: 0;
    }

.signup-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e9f2;
    background: #f8faff;
}

.signup-section-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #0c58b5;
    background: #e8f1ff;
}

.signup-section-title {
    margin: 0;
    color: #1b2e4b;
    font-size: 17px;
    font-weight: 600;
}

.signup-section-description {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.signup-section-body {
    padding: 22px 20px 24px;
}

.signup-container .form-label {
    margin-bottom: 7px;
    color: #27364d;
    font-size: 14px;
    font-weight: 500;
}

.signup-container .required-label::after {
    margin-left: 4px;
    color: #c9303c;
    content: "*";
}

.signup-container .form-control,
.signup-container .form-select {
    min-height: 45px;
    border-color: #d8dee9;
    border-radius: 9px;
    color: #1f2937;
    background-color: #ffffff;
}

.signup-container textarea.form-control {
    min-height: auto;
}

.signup-container .form-control:focus,
.signup-container .form-select:focus {
    border-color: #4d91e8;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.10);
}

.address-textarea {
    min-height: 96px;
    resize: vertical;
}

    /* Placeholder büyük harfe çevrilmesin */
    .address-textarea::placeholder {
        text-transform: none;
    }

.signup-field-hint {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    color: #5c6178;
    font-size: 12px;
}

.signup-container .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #c9303c;
    font-size: 12px;
    font-weight: 500;
}

.signup-container .validation-summary-valid {
    display: none;
}

.signup-container .validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 18px;
}

.information-box {
    height: 100%;
    margin-bottom: 0;
    padding: 16px 18px;
    border: 1px solid #cfe2ff;
    border-radius: 10px;
    color: #244267;
    background: #f1f7ff;
    font-size: 13px;
    line-height: 1.65;
}

    .information-box.warning {
        border-color: #ffe69c;
        color: #664d03;
        background: #fff8df;
    }

    .information-box ul {
        margin: 8px 0 8px 18px;
        padding: 0;
    }

.agreement-card {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #dce3ed;
    border-radius: 14px;
    background: #f8fafc;
}

.agreement-title {
    margin: 0 0 16px;
    color: #1b2e4b;
    font-size: 16px;
    font-weight: 600;
}

.agreement-card .form-check {
    padding: 13px 14px 13px 40px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #ffffff;
}

    .agreement-card .form-check + .form-check {
        margin-top: 12px;
    }

.agreement-card .form-check-input {
    margin-left: -25px;
}

.agreement-card a {
    color: #0c58b5;
    font-weight: 500;
    text-decoration: none;
}

    .agreement-card a:hover {
        text-decoration: underline;
    }

.verification-code-wrapper {
    position: relative;
}

.verification-time {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #515365;
    font-size: 13px;
    font-weight: 500;
    transform: translateY(-50%);
}

.sso-alert {
    border: 1px solid #ffe69c;
    border-radius: 12px;
    background: #fff8df;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.04);
}

/* Giriş sayfasına dönüş: kartın üstünde, arka plan görselinin üzerinde okunur beyaz hap */
.signup-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 14px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    color: #0c58b5;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

    .signup-back-link svg {
        width: 18px;
        height: 18px;
    }

    .signup-back-link:hover,
    .signup-back-link:focus-visible {
        background: #ffffff;
        color: #063c8a;
        text-decoration: underline;
    }

/* Adım göstergesi */
.signup-stepper {
    display: flex;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.signup-stepper-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

    /* Adımlar arası çizgi: önceki adımın dairesinden bu adımın dairesine */
    .signup-stepper-item + .signup-stepper-item::before {
        position: absolute;
        top: 17px;
        right: calc(50% + 22px);
        left: calc(-50% + 14px);
        height: 2px;
        border-radius: 2px;
        background: #dce3ed;
        content: "";
    }

    .signup-stepper-item.is-active::before,
    .signup-stepper-item.is-complete::before {
        background: #0c58b5;
    }

.signup-stepper-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
}

    .signup-stepper-button:disabled {
        color: #6b7280;
        cursor: default;
    }

    .signup-stepper-button:focus-visible {
        outline: none;
    }

        .signup-stepper-button:focus-visible .signup-stepper-number {
            box-shadow: 0 0 0 3px rgba(12, 88, 181, 0.35);
        }

    .signup-stepper-button:not(:disabled):hover .signup-stepper-label {
        text-decoration: underline;
    }

.signup-stepper-number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #dce3ed;
    border-radius: 50%;
    background: #ffffff;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.signup-stepper-item.is-active .signup-stepper-button {
    color: #0c58b5;
    font-weight: 600;
}

.signup-stepper-item.is-active .signup-stepper-number {
    border-color: #0c58b5;
    background: #0c58b5;
    color: #ffffff;
}

.signup-stepper-item.is-complete .signup-stepper-button {
    color: #1b2e4b;
}

.signup-stepper-item.is-complete .signup-stepper-number {
    border-color: #0c58b5;
    background: #e8f1ff;
    color: #0c58b5;
    font-size: 0;
}

    /* Tamamlanan adımda numara yerine onay işareti */
    .signup-stepper-item.is-complete .signup-stepper-number::after {
        font-size: 16px;
        content: "\2713";
    }

.signup-section-title:focus {
    outline: none;
}

.signup-step .signup-section,
.signup-section.signup-step {
    margin-bottom: 0;
}

.signup-info-message {
    height: auto;
    margin-top: 16px;
}

/* Geri / İleri / Kayıt Ol */
.signup-step-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e4e9f2;
}

.signup-step-counter {
    flex: 1 1 auto;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.signup-nav-primary,
.signup-nav-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 140px;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 600;
}

    .signup-nav-primary[hidden],
    .signup-nav-secondary[hidden] {
        display: none;
    }

    .signup-nav-primary svg,
    .signup-nav-secondary svg {
        width: 18px;
        height: 18px;
    }

.signup-nav-primary {
    margin-left: auto;
    border: 0;
    background: #0c58b5;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(12, 88, 181, 0.22);
}

    .signup-nav-primary:hover,
    .signup-nav-primary:focus-visible {
        background: #063c8a;
        color: #ffffff;
    }

    .signup-nav-primary:disabled {
        background: #0c58b5;
        color: #ffffff;
        opacity: 0.55;
    }

.signup-nav-secondary {
    border: 1px solid #c9d3e1;
    background: #ffffff;
    color: #1b2e4b;
}

    .signup-nav-secondary:hover,
    .signup-nav-secondary:focus-visible {
        border-color: #0c58b5;
        background: #f1f7ff;
        color: #0c58b5;
    }

/* Kayıt Ol: sözleşmeler onaylanana kadar pasif */
.signup-nav-submit {
    min-width: 180px;
    background: #198754;
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.22);
}

    .signup-nav-submit:hover,
    .signup-nav-submit:focus-visible {
        background: #146c43;
    }

    .signup-nav-submit:disabled {
        background: #198754;
    }

/* Sözleşme / KVKK metni modalı */
.agreement-modal-body {
    padding: 22px 24px;
}

.agreement-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    color: #6b7280;
    font-size: 14px;
}

.agreement-modal-body .agreement-content {
    color: #343a40;
    font-size: 14px;
    line-height: 1.75;
    text-align: justify;
    overflow-wrap: anywhere;
}

    .agreement-modal-body .agreement-content h1,
    .agreement-modal-body .agreement-content h2,
    .agreement-modal-body .agreement-content h3,
    .agreement-modal-body .agreement-content h4,
    .agreement-modal-body .agreement-content h5 {
        margin: 20px 0 10px;
        color: #1b2e4b;
        font-size: 16px;
        font-weight: 700;
    }

        .agreement-modal-body .agreement-content h1:first-child,
        .agreement-modal-body .agreement-content h2:first-child,
        .agreement-modal-body .agreement-content h3:first-child,
        .agreement-modal-body .agreement-content h4:first-child,
        .agreement-modal-body .agreement-content h5:first-child {
            margin-top: 0;
        }

    .agreement-modal-body .agreement-content img,
    .agreement-modal-body .agreement-content table {
        max-width: 100%;
    }

    .agreement-modal-body .agreement-content p:last-child {
        margin-bottom: 0;
    }

#agreementModal .modal-footer .btn {
    min-width: 0;
    margin-left: 0;
}

.signup-login-prompt {
    margin: 18px 0 0;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.signup-login-link {
    color: #0c58b5;
    font-weight: 500;
    text-decoration: underline;
}

    .signup-login-link:hover {
        color: #063c8a;
    }

@media (max-width: 767.98px) {
    .signup-main-card {
        border-radius: 13px;
    }

    /* Mobilde başlık alanı kompakt: logo ve başlık yan yana, form ekranın üst yarısında başlar */
    .signup-hero {
        padding: 16px;
    }

    .signup-hero-content {
        gap: 14px;
    }

    .signup-logo-wrapper {
        width: 78px;
        min-height: 52px;
        padding: 8px;
        border-radius: 10px;
    }

    .signup-logo {
        max-height: 36px;
    }

    .signup-title {
        margin-bottom: 4px;
        font-size: 17px;
    }

    .signup-subtitle {
        font-size: 12px;
        line-height: 1.5;
    }

    .signup-form-area {
        padding: 16px;
    }

    .signup-section-header {
        padding: 14px 16px;
    }

    .signup-section-body {
        padding: 18px 16px 20px;
    }

    .agreement-card {
        padding: 17px;
    }


    #content {
        margin-top: 75px !important;
    }

    .signup-stepper {
        gap: 4px;
    }

    .signup-stepper-button {
        font-size: 11px;
    }

    .signup-stepper-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .signup-stepper-item + .signup-stepper-item::before {
        top: 15px;
        right: calc(50% + 20px);
        left: calc(-50% + 16px);
    }

    .signup-step-nav {
        flex-wrap: wrap;
    }

    .signup-step-counter {
        order: -1;
        flex-basis: 100%;
    }

    .signup-nav-primary,
    .signup-nav-secondary {
        flex: 1 1 0;
        min-width: 0;
    }
}
