/**
 * Auth (login / register) – Buz cam: buz mavisi → beyaz → siyahımsı gradient,
 * form/görsel bağımsız çerçeve, cam input/buton/checkbox, görsel üzeri kutucuklar
 */

.auth-wrap {
    --auth-text: #222;
    --auth-primary: #3971CB;
    --auth-primary-light: #2EABF3;
    --auth-glass-bg: rgba(255, 255, 255, 0.25);
    --auth-glass-border: rgba(255, 255, 255, 0.4);
    --auth-input-border: rgba(34, 34, 34, 0.12);
}

.auth-wrap {
    font-family: var(--font_family2);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #a8d4ec 0%, #d8ecf5 25%, #f0f8fc 45%, #fff 60%, #e8ecf0 80%, #2a2d35 100%);
}

.auth-main {
    flex: 1;
    padding: 24px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
}

.auth-box {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1140px;
    min-height: calc(100vh - 48px);
    overflow: visible;
}

/* Sol: Görsel – formdan bağımsız kendi çerçevesi, buz cam */
.auth-visual-frame {
    flex: 0 0 calc(50% - 10px);
    min-width: 0;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--auth-glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-visual {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #b8d4e8;
    position: relative;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.auth-visual-brand {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
}

.auth-visual-brand a {
    display: block;
}

.auth-visual-brand img {
    max-width: 100px;
    height: auto;
    min-height: 0;
}

/* Görsel üzeri cam kutucuklar – Eğitim / Kayıt mesajları */
.auth-visual-cards {
    position: absolute;
    z-index: 2;
    display: flex;
    gap: 12px;
}

.auth-visual-cards:not(.auth-visual-cards--register) {
    top: 32%;
    left: 16px;
    right: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.auth-visual-cards:not(.auth-visual-cards--register) .auth-visual-card--1 {
    margin-right: auto;
}

.auth-visual-cards:not(.auth-visual-cards--register) .auth-visual-card--2 {
    margin-left: auto;
}

.auth-visual-cards--register {
    top: 32%;
    left: 16px;
    right: 16px;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
}

.auth-visual-card {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 200px;
}


.auth-visual-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-primary-light);
    flex-shrink: 0;
}

.auth-visual-card-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--auth-primary);
}

.auth-visual-card-icon--cap {
    width: 28px;
    height: 28px;
}

.auth-visual-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.auth-visual-card-sub {
    font-size: 0.8125rem;
    color: #444;
    line-height: 1.35;
}

.auth-visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    background: linear-gradient(to top, rgba(34, 34, 34, 0.85), transparent);
    color: #fff;
}

.auth-visual-caption-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.auth-visual-caption-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

/* Sağ: Form – buz cam panel, formla görsel bağlantısız */
.auth-form-frame {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--auth-glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.auth-form-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 36px 32px;
}

.auth-page--login .auth-form-panel {
    justify-content: center;
}

.auth-mobile-logo {
    display: none !important;
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 20px;
}

.auth-mobile-logo a {
    display: inline-block;
}

.auth-mobile-logo img {
    max-width: 140px;
    max-height: 48px;
    height: auto;
    object-fit: contain;
}

.auth-form-inner {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.auth-form-inner--scroll {
    max-height: none;
    overflow: visible;
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.auth-form-title--register {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--auth-primary);
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 20px 0;
}

.auth-form {
    margin: 0;
}

.auth-field {
    margin-bottom: 10px;
}

.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--auth-text);
    margin-bottom: 4px;
}

.auth-input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(46, 171, 243, 0.45);
    border-radius: 999px;
    font-size: 0.9375rem;
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font_family2);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    border-color: var(--auth-primary-light);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 2px rgba(46, 171, 243, 0.25);
    outline: none;
}

.auth-input.is-invalid {
    border: 1px solid rgba(220, 53, 69, 0.7);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-right: 48px;
}

.auth-input-wrap--icon .auth-input {
    padding-left: 44px;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
}

.auth-input-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
}

.auth-input-wrap--password .auth-input-icon {
    color: var(--auth-primary);
}

.auth-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-toggle-pw:hover {
    color: var(--auth-primary);
}

.auth-pw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.auth-pw-icon svg {
    width: 100%;
    height: 100%;
}

.auth-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #dc3545;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px 0;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--auth-text);
}

.auth-check input {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.auth-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid rgba(46, 171, 243, 0.5);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth-check:hover .auth-checkbox {
    border-color: rgba(46, 171, 243, 0.75);
}

.auth-check input:checked + .auth-checkbox {
    background: linear-gradient(135deg, var(--auth-primary-light), var(--auth-primary));
    border-color: var(--auth-primary);
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(57, 113, 203, 0.4);
}

.auth-check input:checked + .auth-checkbox::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--auth-primary-light);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--auth-primary-light) 0%, var(--auth-primary) 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font_family2);
    transition: box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 16px rgba(57, 113, 203, 0.35);
}

.auth-btn:hover:not(:disabled) {
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(57, 113, 203, 0.45);
}

.auth-btn.disable_btn {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-divider {
    text-align: center;
    margin: 16px 0 12px 0;
    position: relative;
    font-size: 0.8125rem;
    color: #666;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--auth-input-border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    color: var(--auth-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    font-family: var(--font_family2);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-social-btn:hover {
    border-color: rgba(46, 171, 243, 0.5);
    background: rgba(255, 255, 255, 0.75);
}

.auth-social-google {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #333;
}

.auth-social-google:hover {
    background: #f8f9fa;
    border-color: rgba(46, 171, 243, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-social-fb {
    background: #3b5998;
    border-color: #3b5998;
    color: #fff;
}

.auth-social-fb:hover {
    background: #334d82;
    color: #fff;
}

.auth-footer-text {
    margin: 22px 0 0 0;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(46, 171, 243, 0.35);
    border-radius: 14px;
    text-align: center;
}

.auth-footer-text a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.auth-footer-text a:hover {
    color: var(--auth-primary-light);
    text-decoration: underline;
}

.auth-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 14px;
}

@media (min-width: 640px) {
    .auth-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

.auth-field.auth-field--full,
.auth-col-full {
    grid-column: 1 / -1;
}

.auth-col-half {
    grid-column: span 1;
}

#formData {
    display: none;
}

.auth-radio-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.auth-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--auth-text);
}

.auth-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-primary);
}

.auth-terms .auth-check span:last-child {
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-terms .auth-check a {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-terms .auth-check a:hover {
    text-decoration: underline;
}

.auth-select {
    appearance: none;
    background-image: 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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

@media (max-width: 768px) {
    .auth-main {
        padding: 16px 12px;
        align-items: flex-start;
    }

    .auth-box {
        flex-direction: column;
        min-height: auto;
    }

    .auth-visual-frame {
        display: none;
    }

    .auth-mobile-logo {
        display: block !important;
    }

    .auth-form-frame {
        width: 100%;
    }

    .auth-form-panel {
        padding: 24px 24px 28px;
    }

    .auth-page--login .auth-form-panel {
        justify-content: center;
        align-items: center;
    }

    .auth-page--login .auth-form-panel > * {
        width: 100%;
        max-width: 100%;
    }

    .auth-form-inner {
        padding: 0;
    }

    .auth-form-inner--scroll {
        max-height: none;
        overflow-y: visible;
    }

    .auth-form-title {
        font-size: 1.35rem;
    }

    .auth-form-title--register {
        font-size: 1.5rem;
    }

    .auth-fields {
        grid-template-columns: 1fr;
        gap: 10px 0;
    }

    .auth-field.auth-field--full,
    .auth-col-half,
    .auth-col-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .auth-form-inner {
        padding: 16px 20px 28px 20px;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
