.auth-hero {
    --auth-ink: #2b1c17;
    --auth-accent: #8c4332;
    --auth-accent-strong: #5d2a23;
    --auth-sand: #f6f1ea;
    --auth-cream: #fffaf4;
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 4.5vw, 64px) 0 clamp(20px, 3.2vw, 34px);
    margin-bottom: 0 !important;
    background: radial-gradient(120% 120% at 10% 0%, #f8efe6 0%, #f3e5d7 40%, #efe1d5 100%);
    color: var(--auth-ink);
}

main:has(.auth-hero) {
    flex: 0 0 auto;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: -26% 12% auto auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(140, 67, 50, 0.07), rgba(140, 67, 50, 0));
    filter: blur(0px);
    pointer-events: none;
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -50% -16%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(93, 42, 35, 0.05), rgba(93, 42, 35, 0));
    pointer-events: none;
}

.auth-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: stretch;
}

.auth-grid--single {
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
}

.auth-card {
    background: transparent;
    border-radius: 22px;
    padding: clamp(22px, 3.2vw, 36px);
    border: none;
    box-shadow: none;
    position: relative;
}

.auth-shell {
    background: #ffffff;
    border: 1px solid #eadfd6;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(58, 39, 28, 0.09);
    padding: clamp(1.1rem, 2.6vw, 2rem);
    position: relative;
    overflow: hidden;
}

.auth-watermark {
    position: absolute;
    left: 0;
    bottom: 0;
    width: clamp(620px, 52vw, 980px);
    max-width: none;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: normal;
}

@media (max-width: 991.98px) {
    .auth-watermark {
        width: clamp(520px, 70vw, 820px);
        opacity: 0.95;
    }
}

@media (max-width: 575.98px) {
    .auth-watermark {
        width: clamp(380px, 94vw, 620px);
        opacity: 0.9;
    }
}

/* Auth sayfalarında footer ile içerik arasındaki gereksiz boşluğu kaldır */
.site-footer {
    margin-top: 0 !important;
}

.auth-grid,
.auth-card,
.auth-card__header,
.auth-divider,
.auth-footer,
.auth-media,
.auth-field,
.auth-row,
.auth-cta {
    position: relative;
    z-index: 1;
}

.auth-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-media img {
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.14));
}

.auth-card__header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.auth-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #9d4f3c, #5d2a23);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 12px 26px rgba(93, 42, 35, 0.25);
}

.auth-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    letter-spacing: 0.02em;
    margin: 0;
}

.auth-subtitle {
    margin: 6px 0 0;
    color: rgba(43, 28, 23, 0.7);
    font-size: 0.98rem;
}

.auth-form {
    display: grid;
    gap: 18px;
    position: relative;
    isolation: isolate;
}

.auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-field .form-label {
    font-weight: 600;
    color: rgba(43, 28, 23, 0.85);
}

.auth-field .form-control {
    border-radius: 12px;
    border: 1px solid rgba(43, 28, 23, 0.2);
    padding: 12px 14px;
    background: rgba(251, 247, 241, 0.82);
    box-shadow: 0 8px 18px rgba(43, 28, 23, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-field .form-control:hover {
    background: rgba(240, 234, 227, 0.92);
}

.auth-field .form-control:focus {
    border-color: rgba(140, 67, 50, 0.65);
    box-shadow: 0 0 0 4px rgba(140, 67, 50, 0.15);
    background: #fff;
}

.auth-cta {
    width: 100%;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #9b4c3a, #5d2a23);
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 0 14px 26px rgba(93, 42, 35, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(93, 42, 35, 0.3);
    color: #fff;
}

.auth-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43, 28, 23, 0.2), transparent);
    margin: 24px 0 16px;
}

.auth-footer {
    margin: 0;
    text-align: center;
    color: rgba(43, 28, 23, 0.7);
}

.auth-footer a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--auth-accent-strong);
}

.auth-side {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    border: 1px solid rgba(140, 67, 50, 0.12);
    padding: clamp(24px, 3vw, 36px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
}

.auth-side__inner h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    margin-bottom: 16px;
}

.auth-side__inner ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 12px;
}

.auth-side__inner li {
    padding-left: 26px;
    position: relative;
    color: rgba(43, 28, 23, 0.75);
}

.auth-side__inner li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b4c3a, #5d2a23);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(140, 67, 50, 0.12);
    color: var(--auth-accent-strong);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.auth-reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: authFadeUp 0.7s ease forwards;
    animation-delay: var(--delay, 0s);
}

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

@media (max-width: 992px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 20px 14px;
    }
}
