/* ============================================================
   Evrak Yönetim — Auth / Giriş Sayfası
   Kurumsal, marka odaklı UX | idrissancar.net
   ============================================================ */

:root {
    --auth-font-display: 'Instrument Serif', Georgia, serif;
    --auth-font-body: 'DM Sans', system-ui, sans-serif;
    --auth-accent: #0d9488;
    --auth-accent-hover: #0f766e;
    --auth-accent-dim: rgba(13, 148, 136, 0.12);
    --auth-accent-glow: rgba(13, 148, 136, 0.28);
    --auth-surface: #ffffff;
    --auth-surface-elevated: #f8fafc;
    --auth-border: #e2e8f0;
    --auth-text: #0f172a;
    --auth-text-muted: #64748b;
    --auth-input-bg: #ffffff;
    --auth-input-border: #cbd5e1;
    --auth-radius: 16px;
    --auth-radius-lg: 20px;
    --auth-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06), 0 8px 32px -8px rgba(0, 0, 0, 0.04);
    --auth-shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
    --auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --auth-duration: 0.55s;
    --auth-duration-fast: 0.2s;
    --auth-orb-1: rgba(45, 212, 191, 0.22);
    --auth-orb-2: rgba(13, 148, 136, 0.18);
    --auth-orb-3: rgba(94, 234, 212, 0.12);
    --auth-focus-ring: 0 0 0 3px var(--auth-accent-glow);
}

[data-theme="dark"] {
    --auth-surface: #0f172a;
    --auth-surface-elevated: #1e293b;
    --auth-border: #334155;
    --auth-text: #f8fafc;
    --auth-text-muted: #94a3b8;
    --auth-input-bg: #0f172a;
    --auth-input-border: #475569;
    --auth-accent: #14b8a6;
    --auth-accent-hover: #2dd4bf;
    --auth-accent-dim: rgba(20, 184, 166, 0.15);
    --auth-accent-glow: rgba(20, 184, 166, 0.32);
    --auth-orb-1: rgba(45, 212, 191, 0.16);
    --auth-orb-2: rgba(20, 184, 166, 0.14);
    --auth-orb-3: rgba(94, 234, 212, 0.1);
}

/* ── Wrapper: Split layout ── */
.auth-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--auth-font-body);
    font-size: 15.5px;
    color: var(--auth-text);
    background: var(--auth-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

@media (max-width: 991.98px) {
    .auth-form-panel {
        padding: 0.75rem 0;
        align-items: stretch;
        min-height: 100svh;
    }

    .auth-form-container {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 0.75rem 1rem;
        display: flex;
        flex-direction: column;
    }

    .auth-card {
        width: 100%;
        max-width: 100%;
        border-radius: var(--auth-radius-lg);
        box-shadow: var(--auth-shadow);
        border: 1px solid var(--auth-border);
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .auth-card-body {
        padding: 1.5rem 1.25rem 1.75rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-mobile-brand {
        display: flex !important;
    }

    .auth-card-footer {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    .auth-form-group {
        margin-bottom: 1.25rem;
    }

    .auth-form-group:last-of-type {
        margin-bottom: 1.5rem;
    }
}

/* ── Sol panel: Marka sahnesi ── */
.auth-brand-panel {
    display: none;
    position: relative;
    padding: 3rem 4rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
    align-self: stretch;
}

@media (min-width: 992px) {
    .auth-brand-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        min-height: 100%;
        height: 100%;
        padding: 3.5rem 4rem;
    }
}

@media (min-width: 1200px) {
    .auth-brand-panel {
        padding: 3.5rem 5rem;
    }
}

@media (min-width: 1400px) {
    .auth-brand-panel {
        padding: 4rem 6rem;
    }
}

@media (min-width: 1600px) {
    .auth-brand-panel {
        padding: 4rem 7rem;
    }
}

.auth-brand-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.auth-brand-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #0c1222 0%, #0f172a 38%, #0d1b2a 72%, #0a3d3f 100%);
}

[data-theme="light"] .auth-brand-gradient {
    background: linear-gradient(145deg, #0d9488 0%, #0f766e 42%, #0c4a4e 78%, #0a2f32 100%);
}

.auth-brand-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 6v8M36 58v8M6 36h8M58 36h8M14.1 14.1l5.7 5.7M52.2 52.2l5.7 5.7M14.1 57.9l5.7-5.7M52.2 19.8l5.7-5.7' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
    animation: authPatternDrift 48s linear infinite;
}

.auth-brand-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
    will-change: transform;
}

.auth-brand-orb--1 {
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    top: -12%;
    right: -8%;
    background: var(--auth-orb-1);
    animation: authOrbFloatA 18s var(--auth-ease) infinite alternate;
}

.auth-brand-orb--2 {
    width: min(36vw, 360px);
    height: min(36vw, 360px);
    bottom: -10%;
    left: -10%;
    background: var(--auth-orb-2);
    animation: authOrbFloatB 22s var(--auth-ease) infinite alternate;
}

.auth-brand-orb--3 {
    width: min(28vw, 280px);
    height: min(28vw, 280px);
    top: 42%;
    left: 38%;
    background: var(--auth-orb-3);
    animation: authOrbFloatC 16s var(--auth-ease) infinite alternate;
}

@keyframes authOrbFloatA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-28px, 36px, 0) scale(1.08); }
}

@keyframes authOrbFloatB {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(32px, -24px, 0) scale(1.1); }
}

@keyframes authOrbFloatC {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-18px, -30px, 0) scale(0.94); }
}

@keyframes authPatternDrift {
    from { background-position: 0 0; }
    to { background-position: 72px 72px; }
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
}

.auth-brand-logo {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
    row-gap: 1rem;
    margin-bottom: 2.75rem;
}

.auth-brand-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    color: #5eead4;
    font-size: 1.85rem;
    flex-shrink: 0;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.auth-brand-icon--logo {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
}

.auth-brand-logo-img,
.auth-mobile-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-brand-text {
    flex: 1;
    min-width: 0;
}

.auth-brand-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.4rem 0;
}

.auth-brand-title {
    font-family: var(--auth-font-display);
    font-weight: 400;
    font-size: clamp(2rem, 2.8vw, 2.75rem);
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0 0 0.55rem 0;
    line-height: 1.15;
}

.auth-brand-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    font-weight: 500;
    line-height: 1.55;
    max-width: 28rem;
}

/* Özellik listesi — kart değil, satır vurgu */
.auth-features {
    margin: 0 0 2.5rem 0;
}

.auth-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0;
    background: none;
    border: none;
}

.auth-feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #5eead4;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform var(--auth-duration-fast) var(--auth-ease),
                background var(--auth-duration-fast) ease,
                border-color var(--auth-duration-fast) ease;
}

.auth-feature-item:hover .auth-feature-icon {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(94, 234, 212, 0.35);
}

.auth-feature-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding-top: 0.15rem;
}

.auth-feature-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.3;
}

.auth-feature-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.auth-brand-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-brand-footer--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1200px) {
    .auth-brand-footer--grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 2rem;
    }

    .auth-brand-footer--grid .auth-brand-footer-block + .auth-brand-footer-block {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        padding-left: 1.25rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.auth-brand-footer-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-brand-footer-block + .auth-brand-footer-block {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footer-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.auth-footer-name {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

.auth-footer-name-credit {
    font-family: var(--auth-font-display);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.96);
}

.auth-footer-link {
    font-size: 0.8125rem;
    color: #5eead4;
    text-decoration: none;
    transition: color var(--auth-duration-fast) ease, opacity var(--auth-duration-fast) ease;
}

.auth-footer-link:hover {
    color: #99f6e4;
    opacity: 0.95;
}

.auth-footer-info {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 0.15rem;
    line-height: 1.35;
}

/* ── Sağ panel: Form ── */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 3.5rem 2rem;
    background: var(--auth-surface);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

@media (min-width: 992px) {
    .auth-form-panel {
        min-height: 100%;
        height: 100%;
        padding: 4rem 2.5rem;
        background: var(--auth-surface-elevated);
        background-image:
            radial-gradient(ellipse 70% 45% at 100% 0%, var(--auth-accent-dim) 0%, transparent 55%),
            radial-gradient(ellipse 50% 40% at 0% 100%, rgba(13, 148, 136, 0.06) 0%, transparent 50%),
            var(--auth-surface-elevated);
    }
}

@media (min-width: 1200px) {
    .auth-form-panel {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1400px) {
    .auth-form-panel {
        padding: 6rem 3.5rem;
    }
}

@media (min-width: 1600px) {
    .auth-form-panel {
        padding: 8rem 4rem;
    }
}

.auth-form-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 992px) {
    .auth-form-container {
        max-width: 440px;
        margin-inline: auto;
        padding-top: 0;
    }
}

.auth-form-area {
    position: relative;
    width: 100%;
}

/* Mobil marka */
.auth-mobile-brand {
    display: none;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 1rem;
    padding-right: 3.25rem;
}

.auth-mobile-brand-text {
    min-width: 0;
    flex: 1;
}

.auth-mobile-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-accent-dim);
    border-radius: 14px;
    color: var(--auth-accent);
    font-size: 1.45rem;
    flex-shrink: 0;
}

.auth-mobile-logo--img {
    padding: 0.35rem;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
}

.auth-mobile-brand h2 {
    font-family: var(--auth-font-display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--auth-text);
    margin: 0 0 0.2rem 0;
    line-height: 1.25;
}

.auth-mobile-subtitle {
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Mobil özellik özeti */
.auth-mobile-modules {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    background: var(--auth-surface);
    overflow: hidden;
}

.auth-mobile-modules-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.auth-mobile-modules-summary::-webkit-details-marker {
    display: none;
}

.auth-mobile-modules-summary::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid var(--auth-text-muted);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform var(--auth-duration-fast) var(--auth-ease);
    flex-shrink: 0;
}

.auth-mobile-modules[open] .auth-mobile-modules-summary::before {
    transform: rotate(90deg);
}

.auth-mobile-modules-list {
    list-style: none;
    margin: 0;
    padding: 0 0.5rem 0.75rem;
    border-top: 1px solid var(--auth-border);
}

.auth-mobile-modules-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.5rem;
    border-radius: 8px;
}

.auth-mobile-modules-item i {
    color: var(--auth-accent);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-mobile-modules-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.auth-mobile-modules-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-mobile-modules-item-desc {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--auth-text-muted);
}

/* Tema butonu */
.auth-theme-toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

@media (max-width: 991.98px) {
    .auth-form-area .auth-theme-toggle {
        top: 0.65rem;
        right: 0.65rem;
    }

    .auth-form-area .auth-card-body {
        padding-top: 3rem;
    }
}

@media (min-width: 992px) {
    .auth-form-area .auth-theme-toggle {
        top: -0.35rem;
        right: -0.35rem;
    }
}

.auth-theme-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    color: var(--auth-text-muted);
    cursor: pointer;
    transition: color var(--auth-duration-fast) var(--auth-ease),
                border-color var(--auth-duration-fast) var(--auth-ease),
                background var(--auth-duration-fast) var(--auth-ease),
                transform var(--auth-duration-fast) var(--auth-ease),
                box-shadow var(--auth-duration-fast) var(--auth-ease);
}

.auth-theme-btn:hover {
    color: var(--auth-accent);
    border-color: var(--auth-accent);
    background: var(--auth-accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px var(--auth-accent-glow);
}

.auth-theme-btn:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 2px;
}

.auth-theme-btn i {
    font-size: 1.25rem;
}

/* ── Login Card ── */
.auth-card {
    width: 100%;
    max-width: 100%;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-lg);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    transition: box-shadow 0.35s var(--auth-ease);
}

.auth-card:hover {
    box-shadow: var(--auth-shadow-lg);
}

.auth-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-accent), #2dd4bf 55%, #5eead4);
    background-size: 200% 100%;
    animation: authAccentShine 6s ease-in-out infinite;
}

@keyframes authAccentShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-card-body {
    padding: 2rem 2rem 2.25rem;
}

@media (min-width: 768px) {
    .auth-card-body {
        padding: 2.25rem 2.5rem 2.5rem;
    }
}

@media (min-width: 992px) {
    .auth-card-body {
        padding: 2.5rem 2.75rem 2.75rem;
    }
}

/* Form karşılama */
.auth-welcome-text {
    margin-bottom: 1.5rem;
}

.auth-form-title {
    font-family: var(--auth-font-display);
    font-weight: 400;
    font-size: 1.75rem;
    color: var(--auth-text);
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.02em;
}

.auth-form-desc {
    font-size: 0.9375rem;
    color: var(--auth-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Inline flash alerts */
.auth-inline-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-inline-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.auth-inline-alert i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-inline-alert--error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

[data-theme="dark"] .auth-inline-alert--error {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.auth-inline-alert--warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.28);
    color: #b45309;
}

[data-theme="dark"] .auth-inline-alert--warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.auth-inline-alert--success {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.28);
    color: #0f766e;
}

[data-theme="dark"] .auth-inline-alert--success {
    background: rgba(20, 184, 166, 0.14);
    color: #5eead4;
}

.auth-inline-alert--info {
    background: var(--auth-accent-dim);
    border-color: rgba(13, 148, 136, 0.22);
    color: var(--auth-text);
}

/* Form */
.auth-card-body form {
    width: 100%;
}

.auth-form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

.auth-form-group:last-of-type {
    margin-bottom: 0.25rem;
}

.auth-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--auth-text);
    margin-bottom: 0.55rem;
}

.auth-form-label i {
    color: var(--auth-text-muted);
    font-size: 1rem;
}

.auth-field-hint {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    line-height: 1.35;
}

.auth-form-control {
    width: 100%;
    padding: 1.05rem 1.35rem 1.05rem 2.9rem;
    font-size: 1.0625rem;
    font-family: var(--auth-font-body);
    color: var(--auth-text);
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-radius);
    transition: border-color var(--auth-duration-fast) ease,
                box-shadow var(--auth-duration-fast) ease,
                background var(--auth-duration-fast) ease;
}

.auth-form-control::placeholder {
    color: var(--auth-text-muted);
    opacity: 0.75;
}

.auth-form-control:hover {
    border-color: #94a3b8;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: var(--auth-focus-ring);
}

.auth-form-control:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 2px;
}

.auth-form-control[aria-invalid="true"] {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

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

.auth-input-wrap.is-focused .auth-input-icon {
    color: var(--auth-accent);
}

.auth-input-wrap .auth-form-control {
    padding-left: 2.9rem;
}

.auth-input-wrap .auth-form-control[type="password"],
.auth-input-wrap .auth-form-control[type="text"]#password {
    padding-right: 3rem;
}

.auth-input-wrap .auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
    transition: color var(--auth-duration-fast) ease;
}

.auth-input-wrap .auth-password-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    padding: 0.4rem;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.1rem;
    z-index: 2;
    transition: color var(--auth-duration-fast) ease, background var(--auth-duration-fast) ease;
}

.auth-input-wrap .auth-password-toggle:hover {
    color: var(--auth-accent);
    background: var(--auth-accent-dim);
}

.auth-input-wrap .auth-password-toggle:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 1px;
}

@media (max-width: 991.98px) {
    .auth-form-control {
        padding: 1rem 1rem 1rem 2.75rem;
        font-size: 1rem;
    }

    .auth-input-wrap .auth-input-icon {
        left: 0.85rem;
    }
}

/* Submit */
.auth-btn-submit {
    width: 100%;
    padding: 1.05rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--auth-font-body);
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-hover) 100%);
    border: none;
    border-radius: var(--auth-radius);
    cursor: pointer;
    transition: transform var(--auth-duration-fast) var(--auth-ease),
                box-shadow var(--auth-duration-fast) var(--auth-ease),
                filter var(--auth-duration-fast) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    box-shadow: 0 8px 20px -10px var(--auth-accent-glow);
}

.auth-btn-submit-label,
.auth-btn-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-submit:hover {
    color: #ffffff;
    filter: brightness(1.04);
    box-shadow: 0 12px 28px -10px var(--auth-accent-glow);
    transform: translateY(-2px);
}

.auth-btn-submit:active {
    transform: translateY(0);
}

.auth-btn-submit:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 3px;
}

.auth-btn-submit:disabled,
.auth-btn-submit.is-loading {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.auth-btn-submit .spinner-border {
    width: 1.15rem;
    height: 1.15rem;
    border-width: 2px;
}

/* Footer */
.auth-card-footer {
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--auth-border);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
    line-height: 1.5;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.auth-card-footer p {
    margin-bottom: 0.35rem;
}

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

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

/* ── Entrance koreografisi ── */
.auth-js .auth-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--auth-duration) var(--auth-ease),
                transform var(--auth-duration) var(--auth-ease);
}

.auth-js.auth-ready .auth-reveal.is-visible,
.auth-js .auth-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-js .auth-reveal[data-reveal="1"] { transition-delay: 0.05s; }
.auth-js .auth-reveal[data-reveal="2"] { transition-delay: 0.12s; }
.auth-js .auth-reveal[data-reveal="3"] { transition-delay: 0.18s; }
.auth-js .auth-reveal[data-reveal="4"] { transition-delay: 0.26s; }
.auth-js .auth-reveal[data-reveal="5"] { transition-delay: 0.34s; }
.auth-js .auth-reveal[data-reveal="6"] { transition-delay: 0.42s; }
.auth-js .auth-reveal[data-reveal="7"] { transition-delay: 0.5s; }

/* Nested reveals inside card inherit card timing base */
.auth-card .auth-reveal[data-reveal="4"] { transition-delay: 0.28s; }
.auth-card .auth-reveal[data-reveal="5"] { transition-delay: 0.36s; }
.auth-card .auth-reveal[data-reveal="6"] { transition-delay: 0.44s; }
.auth-card .auth-reveal[data-reveal="7"] { transition-delay: 0.52s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .auth-brand-pattern,
    .auth-brand-orb,
    .auth-card::before {
        animation: none !important;
    }

    .auth-js .auth-reveal,
    .auth-feature-icon,
    .auth-theme-btn,
    .auth-btn-submit,
    .auth-form-control,
    .auth-password-toggle,
    .auth-footer-link {
        transition: none !important;
        animation: none !important;
    }

    .auth-js .auth-reveal {
        opacity: 1;
        transform: none;
    }

    .auth-btn-submit:hover,
    .auth-theme-btn:hover,
    .auth-feature-item:hover .auth-feature-icon {
        transform: none;
    }
}

.auth-js.auth-reduced-motion .auth-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* App.css uyumluluk */
body.auth-page {
    background: var(--auth-surface) !important;
    overflow-x: hidden;
}

body.auth-page > .auth-wrapper {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-page .btn-primary {
    background: var(--auth-accent);
    border-color: var(--auth-accent);
    font-weight: 600;
}

.auth-page .btn-primary:hover {
    background: var(--auth-accent-hover);
    border-color: var(--auth-accent-hover);
}

.auth-page .text-primary {
    color: var(--auth-accent) !important;
}

.auth-page .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: var(--auth-focus-ring);
}

/* Mobil override */
@media (max-width: 991.98px) {
    .auth-form-panel {
        padding: 0.75rem 0;
        min-height: 100svh;
    }

    .auth-form-container {
        padding: 0.75rem 0.75rem 1rem;
    }

    .auth-card-body {
        padding: 1.5rem 1.25rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form-container {
        padding: 0.5rem 0.5rem 0.75rem;
    }

    .auth-card-body {
        padding: 1.25rem 1rem 1.5rem;
    }

    .auth-form-group {
        margin-bottom: 1.15rem;
    }

    .auth-card-footer {
        margin-top: 1.25rem;
        padding-top: 1.15rem;
        font-size: 0.75rem;
    }

    .auth-mobile-brand h2 {
        font-size: 1.2rem;
    }

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

    .auth-form-desc {
        font-size: 0.875rem;
    }

    .auth-form-control {
        padding: 0.9rem 0.85rem 0.9rem 2.6rem;
        font-size: 0.95rem;
    }

    .auth-input-wrap .auth-input-icon {
        left: 0.8rem;
        font-size: 1rem;
    }

    .auth-btn-submit {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }
}
