/* Muhasebe180 Login Page Styles */

:root {
    --navy: #10143F;
    --deep-navy: #080C24;
    --purple: #5A2FB7;
    --lila: #9B7CF6;
    --teal: #0A6170;
    --mint: #00E0B8;
    --mint-light: #5FF5D4;
    --orange: #FF7A1A;
    --gold: #FFD166;
    --white: #FFFFFF;
    --muted: rgba(255,255,255,0.68);
    --panel: rgba(255,255,255,0.1);
    --border: rgba(255,255,255,0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--deep-navy);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--white);
    overflow-x: hidden;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        radial-gradient(circle at 18% 16%, rgba(0,224,184,0.25) 0%, transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(155,124,246,0.27) 0%, transparent 32%),
        linear-gradient(135deg, #080C24 0%, #141A52 48%, #073A49 100%);
    background-size: 78px 78px, 78px 78px, auto, auto, 220% 220%;
    background-position: center;
    /* Perf: surekli calisan gradient animasyonu dusuk GPU'lu PC'lerde scroll'u kasiyordu.
       Statik birakildi ve kendi compositor katmanina izole edildi (scroll'da repaint yok). */
    transform: translateZ(0);
    will-change: transform;
}

.bg-animation::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(8,12,36,0.34) 64%, rgba(8,12,36,0.72) 100%);
}

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

.login-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(4px);
    opacity: 0.5;
    animation: floatOrb 16s ease-in-out infinite;
    /* Perf: bulanik orb'u kendi GPU katmanina al; transform animasyonu repaint degil composite olsun. */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.login-orb-one {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0,224,184,0.28), transparent 68%);
    left: -120px;
    bottom: 8%;
}

.login-orb-two {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,122,26,0.2), transparent 68%);
    right: -100px;
    top: 12%;
    animation-delay: 3s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(0,-22px,0) scale(1.05); }
}

.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2.5rem;
}

.login-container {
    max-width: 1280px;
    margin: 0 auto;
}

.login-row {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

@media (max-width: 992px) {
    .login-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.login-section {
    background: linear-gradient(145deg, rgba(255,255,255,0.19), rgba(255,255,255,0.09));
    /* Perf: blur 20px -> 10px. backdrop-filter scroll'da her karede yeniden hesaplaniyor;
       yaricapi dusurmek dusuk GPU'larda kasmayi ciddi azaltir. Zemin opakligi hafif artirildi. */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 2.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.16);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,224,184,0.13), transparent 44%);
    pointer-events: none;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.login-brand-hero {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.35rem 0 1rem;
    margin-bottom: 0.15rem;
}

.login-brand-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-58%, -50%);
    width: 220px;
    height: 120px;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,224,184,0.22) 0%, rgba(155,124,246,0.1) 45%, transparent 72%);
    pointer-events: none;
    filter: blur(2px);
}

.logo-section .m180-brand--login-stack {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    color: var(--white) !important;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo-section .m180-brand--login-stack:hover {
    opacity: 0.97;
    transform: translateY(-2px);
    color: var(--white) !important;
}

.logo-section .m180-brand-mark {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(155,124,246,0.32), rgba(0,224,184,0.24));
    box-shadow:
        0 16px 38px rgba(0,224,184,0.26),
        0 0 0 1px rgba(255,255,255,0.16),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.logo-section .m180-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-section .m180-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
    text-align: left;
    min-width: 0;
}

.logo-section .m180-brand-name {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.7px;
    color: var(--white);
    white-space: nowrap;
}

.logo-section .m180-brand-accent {
    background: linear-gradient(90deg, var(--lila), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-section .m180-brand-copymark {
    font-size: 0.45em;
    font-weight: 500;
    opacity: 0.72;
    margin-left: 2px;
    -webkit-text-fill-color: rgba(255,255,255,0.72);
}

.logo-section .m180-brand-tag {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
}

.logo-section .login-badge {
    margin-bottom: 0;
    margin-top: 0.15rem;
}

.logo-section .login-subtitle {
    margin-top: 1.15rem;
    max-width: 360px;
}

.logo-section img {
    max-height: 116px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.22));
}

.logo-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--mint) 0%, var(--lila) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--mint-light);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.login-badge.accent {
    background: rgba(0,224,184,0.11);
    border-color: rgba(0,224,184,0.22);
}

.login-subtitle {
    color: var(--muted);
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.login-form,
.login-section .text-center,
.login-trust-strip {
    position: relative;
    z-index: 1;
}

.form-label { color: rgba(255,255,255,0.88); font-weight: 700; margin-bottom: 0.55rem; }
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    padding: 0.95rem 1rem;
    border-radius: 16px;
    transition: all 0.3s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--mint);
    color: var(--white);
    box-shadow: 0 0 0 0.22rem rgba(0, 224, 184, 0.18);
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.field-help { display: block; color: rgba(255,255,255,0.55); font-size: 0.82rem; margin-top: 0.55rem; line-height: 1.45; }

.btn-primary {
    background: linear-gradient(135deg, #00A88D 0%, #00E0B8 56%, #91FFE8 100%);
    border: none;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-weight: 850;
    transition: all 0.3s;
    width: 100%;
    color: #061F24;
    box-shadow: 0 12px 30px rgba(0,224,184,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    color: #061F24;
    box-shadow: 0 18px 42px rgba(0,224,184,0.45), inset 0 1px 0 rgba(255,255,255,0.38);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.3s;
    width: 100%;
    background: rgba(255,255,255,0.06);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-2px);
}

.info-section {
    background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    /* Perf: blur 18px -> 10px (scroll kasmasi icin). */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.login-hero-copy {
    padding: 1rem 0.5rem 1.4rem;
}

.login-hero-copy h2 {
    color: var(--white);
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.7px;
    margin-bottom: 1rem;
}

.login-hero-copy p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 640px;
    margin-bottom: 0;
}

.login-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.login-stats div {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.11);
}

.login-stats strong {
    display: block;
    color: var(--mint-light);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
}

.login-stats span {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    font-weight: 700;
}

.info-card {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 1.55rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.info-card::after {
    content: '';
    position: absolute;
    inset: auto -40px -70px auto;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0,224,184,0.12), transparent 70%);
    pointer-events: none;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    border-color: rgba(0, 224, 184, 0.32);
}
.support-card {
    background: rgba(155,124,246,0.1);
    border-color: rgba(155,124,246,0.22);
}
.support-card .info-card h3 i,
.support-card h3 i {
    background: linear-gradient(135deg, var(--purple), var(--lila));
    box-shadow: 0 10px 24px rgba(155,124,246,0.22);
}
.info-card h3 {
    color: var(--white);
    font-size: 1.28rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.info-card h3 i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--teal), var(--mint));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(0,224,184,0.22);
    background-clip: border-box;
    -webkit-background-clip: border-box;
}
.info-card h3 i::before { color: var(--white); }
.info-card p { color: rgba(255, 255, 255, 0.72); line-height: 1.72; margin-bottom: 1rem; }

.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li {
    color: rgba(255, 255, 255, 0.82);
    padding: 0.38rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.93rem;
}
.feature-list li i { color: var(--mint); font-size: 1rem; }

.alert { border-radius: 16px; border: none; padding: 1rem 1.25rem; position: relative; z-index: 1; }
.alert-danger { background: rgba(220, 53, 69, 0.2); color: #ff6b6b; border: 1px solid rgba(220, 53, 69, 0.3); }
.alert-success { background: rgba(40, 167, 69, 0.2); color: #4ade80; border: 1px solid rgba(40, 167, 69, 0.3); }

.link-forgot { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all 0.3s; }
.link-forgot:hover { color: var(--mint); }

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-bottom: 1rem;
}
.btn-back:hover { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.login-section .text-center .btn-back { margin-bottom: 0; }

.login-trust-strip {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.login-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.74);
    font-size: 0.78rem;
    font-weight: 700;
}

.login-trust-strip i { color: var(--mint); }

@media (max-width: 768px) {
    .content-wrapper { padding: 1rem; }
    .login-section, .info-section { padding: 1.6rem; border-radius: 24px; }
    .login-brand-hero::before { width: 190px; height: 100px; }
    .logo-section .m180-brand--login-stack { gap: 14px; padding: 0.25rem 0.35rem; }
    .logo-section .m180-brand-mark { width: 68px; height: 68px; border-radius: 18px; }
    .logo-section .m180-brand-name { font-size: 1.75rem; }
    .logo-section .m180-brand-tag { font-size: 0.62rem; letter-spacing: 0.1em; }
    .logo-section h1 { font-size: 2rem; }
    .logo-section img { max-height: 92px; }
    .login-hero-copy h2 { font-size: 1.65rem; }
    .login-stats { grid-template-columns: 1fr; }
    .login-row { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .logo-section .m180-brand--login-stack { gap: 12px; }
    .logo-section .m180-brand-mark { width: 58px; height: 58px; border-radius: 16px; }
    .logo-section .m180-brand-name { font-size: 1.45rem; }
    .logo-section .m180-brand-tag { font-size: 0.56rem; margin-top: 4px; }
}

/* Erisilebilirlik + perf: isletim sisteminde "hareketi azalt" acikken tum animasyon/gecisleri kapat. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .login-orb { animation: none; }
}
