/* ==========================================================================
   eKulliye — Public Auth Design System
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.pa-shell {
    font-family: 'Poppins', system-ui, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #3d1532 55%, #4b183d 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 16px;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.pa-card {
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 32px 28px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    animation: paFadeIn 0.5s ease forwards;
}

.pa-card--narrow {
    max-width: 440px;
}

.pa-card--wide {
    max-width: 760px;
}

.pa-card--article {
    max-width: 860px;
}

@keyframes paFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pa-main {
    width: 100%;
    min-width: 0;
}

.pa-extras {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pa-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
}

/* Header ------------------------------------------------------------------ */

.pa-header {
    text-align: center;
    margin-bottom: 26px;
}

.pa-header--compact {
    margin-bottom: 22px;
}

.pa-header__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f8c4e3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.pa-header__subtitle {
    margin: 10px 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 400;
}

.pa-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: rgba(248, 196, 227, 0.9);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pa-back:hover {
    color: #fff;
}

.pa-back:focus-visible {
    outline: 2px solid rgba(248, 196, 227, 0.55);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Alerts ------------------------------------------------------------------ */

.pa-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 18px;
}

.pa-alert--success {
    background: rgba(46, 125, 50, 0.22);
    border: 1px solid rgba(129, 199, 132, 0.4);
    color: #d7f0da;
}

.pa-alert--error {
    background: rgba(183, 64, 90, 0.22);
    border: 1px solid rgba(244, 166, 212, 0.35);
    color: #ffd8e8;
}

.pa-alert__list {
    margin: 0;
    padding-left: 18px;
}

/* Forms ------------------------------------------------------------------- */

.pa-form {
    width: 100%;
    min-width: 0;
}

/* Alanlar arası boşluk; buton eski margin-top ile kalır */
.pa-form > .form-group + .form-group {
    margin-top: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.form-section {
    margin-bottom: 22px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.12);
    min-width: 0;
}

.form-section-title {
    margin: 0 0 18px;
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: #f8c4e3;
    letter-spacing: 0.01em;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.84);
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control,
.form-select {
    height: 48px;
    padding: 0 16px;
    line-height: 1.2;
}

.form-select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f8c4e3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

.form-select option {
    color: #1a1a1a;
    background: #fff;
}

.form-textarea {
    min-height: 140px;
    height: 140px;
    padding: 14px 16px;
    line-height: 1.55;
    resize: vertical;
}

textarea.description-field,
textarea.form-textarea.description-field {
    resize: none !important;
}

.description-counter {
    display: block;
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-align: right;
    letter-spacing: 0.02em;
}

.description-counter--limit,
.description-counter.description-counter--limit {
    color: #ffc0cb;
}

textarea.description-field--limit,
textarea.description-field--paste-overflow {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.22) !important;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #f8c4e3;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(248, 196, 227, 0.15);
}

.form-control:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.form-submit:focus-visible {
    outline: none;
    border-color: #f8c4e3;
    box-shadow: 0 0 0 3px rgba(248, 196, 227, 0.22);
}

.form-error {
    color: #ffc0cb;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
}

.form-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: #f8c4e3;
    color: #1a1a1a;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.form-submit:hover {
    background: #f4a6d4;
}

.form-submit:active {
    transform: scale(0.99);
}

.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-kvkk {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-kvkk input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #f8c4e3;
    cursor: pointer;
}

.form-kvkk label {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
    cursor: pointer;
}

.form-kvkk label a {
    color: #f8c4e3;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.form-kvkk label a:hover {
    color: #fff;
}

/* Quick links ------------------------------------------------------------- */

.pa-quick-links__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pa-quick-links__item {
    display: inline-flex;
}

.pa-quick-links__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(248, 196, 227, 0.88);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.pa-quick-links__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.pa-quick-links__link:focus-visible {
    outline: 2px solid rgba(248, 196, 227, 0.55);
    outline-offset: 2px;
}

.pa-quick-links__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* KVKK article ------------------------------------------------------------ */

.pa-article {
    min-width: 0;
}

.pa-article__intro {
    margin: 0 0 24px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
}

.pa-article__section {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pa-article__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.pa-article__section h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #f8c4e3;
    line-height: 1.35;
}

.pa-article__section p {
    margin: 0 0 10px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.pa-article__section p:last-child {
    margin-bottom: 0;
}

.pa-article__list {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.pa-article__list li {
    margin-bottom: 6px;
}

.pa-article__list li:last-child {
    margin-bottom: 0;
}

.pa-article__note {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 768px) {
    .pa-shell {
        padding: 16px 12px;
        align-items: center;
    }

    .pa-shell:has(.pa-card--wide),
    .pa-shell:has(.pa-card--article) {
        align-items: flex-start;
    }

    .pa-card {
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group--full {
        grid-column: auto;
    }

    .form-section {
        padding: 18px 16px 16px;
    }
}

@media (max-width: 380px) {
    .pa-header__title {
        font-size: 1.3rem;
    }
}
