/* ECOIZ - Giriş ekranları */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter Variable', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #1e1b2e;
    background: #f5f5fa;
    -webkit-font-smoothing: antialiased;
}

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* Sol marka paneli */
.auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .10) 0, transparent 35%),
        linear-gradient(145deg, #2b1846 0%, #4b2a70 45%, #6b3fa0 100%);
}

.auth__brand-inner {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.auth__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 72px;
}

.auth__logo svg {
    width: 44px;
    height: 44px;
}

.auth__logo b {
    font-weight: 800;
    color: #e3d3f7;
}

.auth__brand h1 {
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}

.auth__brand p {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd0ee;
    margin: 0 0 36px;
}

.auth__modules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Tek sayıda modül varsa sonuncusu tam satır kaplasın */
.auth__modules li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.auth__modules li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 500;
    backdrop-filter: blur(6px);
}

.auth__modules span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--c);
    background: rgba(255, 255, 255, .10);
    flex-shrink: 0;
}

.auth__brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #bda9d8;
}

/* Ürünü yapan firmanın sabit işareti; telif satırıyla aynı hizada, ondan bir tık baskın.
   Logo turkuaz bir kelime işareti: mor zeminde okunmuyor, bu yüzden açık bir levha üstüne
   oturur. Levha logonun kendi renklerini bozmaz — filtreyle açmak markayı değiştirirdi. */
.auth__vendor-plaka {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 2px rgba(20, 8, 40, .18);
    flex: 0 0 auto;
}

.auth__vendor-logo {
    height: 22px;
    width: auto;
    max-width: 140px;
    display: block;
}

/* ERP'yi kullanan firmanın logosu: karşılama başlığının üstünde, serbest ölçekli.
   Yükseklik sabit, genişlik oranla belirlenir — dik ve yatık logolar aynı ağırlıkta durur. */
.auth__firma {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.auth__firma img {
    max-height: 56px;
    max-width: 210px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Logo yoksa ünvan yazıyla durur: aynı yer, aynı yükseklik, sessiz bir ağırlıkta —
   "Hoş geldiniz" başlığıyla yarışmasın. */
.auth__firma--ad {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: #5b5570;
    letter-spacing: .01em;
}

@media (max-width: 900px) {
    .auth__firma {
        margin-bottom: 18px;
        min-height: 46px;
    }

    .auth__firma img {
        max-height: 46px;
        max-width: 170px;
    }

    .auth__firma--ad {
        font-size: 15px;
    }
}

.auth__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.auth__glow--1 {
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -120px;
    background: rgba(139, 92, 199, .55);
}

.auth__glow--2 {
    width: 260px;
    height: 260px;
    left: -80px;
    bottom: 120px;
    background: rgba(56, 189, 248, .20);
}

/* Sağ form paneli */
.auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth__card {
    width: 100%;
    max-width: 400px;
}

.auth__card--center {
    text-align: center;
    background: #fff;
    border: 1px solid #e7e6ef;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 18px 40px rgba(30, 27, 46, .10);
}

.auth--simple {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth__mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 32px;
}

.auth__mobile-logo b {
    color: #5f368d;
}

.auth__card h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.auth__subtitle {
    color: #7c7893;
    margin: 0 0 28px;
    line-height: 1.5;
}

.auth__alert ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fdeeee;
    border: 1px solid #f7d3d4;
    color: #b42318;
    font-weight: 500;
}

.auth__alert.validation-summary-valid {
    display: none;
}

/* Doğrulama özeti metnini <ul> içinde basar; bakım şeridi ise düz metindir ve kendi kutusunu
   ister. Kilitli hâl kırmızı (giremezsin), duyuru sarı (girebilirsin ama birazdan çıkacaksın). */
.auth__alert:not(.validation-summary-valid):not(:has(ul)) {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fdeeee;
    border: 1px solid #f7d3d4;
    color: #b42318;
    font-weight: 500;
    line-height: 1.45;
}

.auth__alert--uyari:not(.validation-summary-valid) {
    background: #fff8eb;
    border-color: #f5d9a6;
    color: #9a5b00;
}

.auth__field {
    margin-bottom: 18px;
}

.auth__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: #37334a;
}

.auth__input {
    position: relative;
    display: flex;
    align-items: center;
}

.auth__input > i {
    position: absolute;
    left: 14px;
    color: #8f8aa6;
    font-size: 16px;
    pointer-events: none;
}

.auth__input input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 42px;
    border-radius: 12px;
    border: 1px solid #dcd9e6;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: #1e1b2e;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

/* Dönem seçimi: metin kutularıyla aynı boy ve çerçeve. Ayrı görünseydi giriş ekranı
   iki farklı tasarımın karışımı gibi dururdu. */
.auth__input select {
    width: 100%;
    height: 46px;
    padding: 0 38px 0 42px;
    border-radius: 12px;
    border: 1px solid #dcd9e6;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: #1e1b2e;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.auth__input select:focus {
    border-color: #8b5cc7;
    box-shadow: 0 0 0 4px rgba(139, 92, 199, .16);
}

/* Açılır liste oku: select'in appearance'ı kapalı olduğu için elle çiziliyor. */
.auth__input:has(select)::after {
    content: "";
    position: absolute;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #8f8aa6;
    border-bottom: 2px solid #8f8aa6;
    transform: translateY(-2px) rotate(45deg);
    pointer-events: none;
}

.auth__hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: #6b6885;
}

.auth__input input::placeholder {
    color: #b1adc2;
}

.auth__input input:focus {
    border-color: #8b5cc7;
    box-shadow: 0 0 0 4px rgba(139, 92, 199, .16);
}

.auth__input input.input-validation-error {
    border-color: #e5484d;
}

.auth__toggle {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8f8aa6;
    cursor: pointer;
    font-size: 16px;
}

.auth__toggle:hover {
    background: #f2edf8;
    color: #5f368d;
}

.auth__error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: #d92d20;
}

.auth__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 24px;
    color: #4a4760;
    cursor: pointer;
    user-select: none;
}

.auth__remember input {
    width: 16px;
    height: 16px;
    accent-color: #5f368d;
}

.auth__submit {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #7a4bb3, #5f368d);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px -8px rgba(95, 54, 141, .6);
    transition: transform .15s, box-shadow .15s;
}

.auth__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -8px rgba(95, 54, 141, .7);
    color: #fff;
}

.auth__submit i {
    transition: transform .15s;
}

.auth__submit:hover i {
    transform: translateX(3px);
}

.auth__help {
    display: flex;
    gap: 8px;
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e7e6ef;
    color: #7c7893;
    font-size: 13px;
}

.auth__state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #5f368d;
    background: #f2edf8;
}

@media (max-width: 991.98px) {
    .auth {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth__brand {
        display: none;
    }

    .auth__mobile-logo {
        display: flex;
    }
}
