/*==============================================================================
  ERP Panel — giriş ekranı (WMS / ERP projelerindeki erp-auth.css uyarlaması)

  Sol tarafta lacivert tanıtım paneli, sağda form kartı. Kutu modeli, --erp-*
  belirteçleri ve gövde sıfırlaması erp-dashboard.css'ten gelir; bu dosya tek
  başına yüklenmez. Temanın `.login-one__form` bileşeni burada kullanılmadığı
  için form alanları erp-dashboard.css'teki .erp-input / .erp-field üstüne
  kurulur.
==============================================================================*/
.erp-auth {
    display: flex;
    min-height: 100vh;
    background: var(--verdicta-white);
}

/*-------------------------------------------------- Sol: tanıtım paneli */
.erp-auth__aside {
    position: relative;
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 56px;
    background: var(--verdicta-black);
    overflow: hidden;
    isolation: isolate;
}

    .erp-auth__aside::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -2;
        background:
            radial-gradient(circle at 15% 20%, rgba(var(--verdicta-base-rgb), .35) 0, transparent 38%),
            radial-gradient(circle at 85% 85%, rgba(var(--verdicta-base-rgb), .28) 0, transparent 42%);
    }

    .erp-auth__aside::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(150deg,
            rgba(var(--verdicta-black-rgb), .94) 0%,
            rgba(var(--verdicta-black-rgb), .82) 55%,
            rgba(var(--verdicta-base-rgb), .45) 100%);
    }

.erp-auth__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.erp-auth__brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--verdicta-base);
    color: var(--verdicta-white);
    font-family: var(--verdicta-font-two);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.erp-auth__brand-text strong {
    display: block;
    font-family: var(--verdicta-font-two);
    color: var(--verdicta-white);
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
}

.erp-auth__brand-text span {
    display: block;
    color: rgba(var(--verdicta-white-rgb), .5);
    font-size: 11px;
    line-height: 16px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.erp-auth__pitch {
    padding-block: 40px;
}

    .erp-auth__pitch h2 {
        color: var(--verdicta-white);
        font-size: 40px;
        line-height: 1.18;
        font-weight: 600;
        letter-spacing: -.02em;
        margin-bottom: 18px;
    }

    .erp-auth__pitch > p {
        color: rgba(var(--verdicta-white-rgb), .68);
        font-size: 15px;
        line-height: 26px;
        max-width: 42ch;
    }

.erp-auth__modules {
    display: grid;
    gap: 12px 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
}

    .erp-auth__modules li {
        display: flex;
        align-items: center;
        gap: 10px;
        color: rgba(var(--verdicta-white-rgb), .82);
        font-size: 13.5px;
        line-height: 20px;
    }

    .erp-auth__modules i {
        color: var(--verdicta-base);
        font-size: 13px;
        width: 16px;
        text-align: center;
    }

.erp-auth__foot {
    color: rgba(var(--verdicta-white-rgb), .42);
    font-size: 12px;
    line-height: 20px;
}

    .erp-auth__foot a {
        color: rgba(var(--verdicta-white-rgb), .7);
    }

        .erp-auth__foot a:hover {
            color: var(--verdicta-base);
        }

/*-------------------------------------------------- Sağ: form paneli */
.erp-auth__panel {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--verdicta-gray-bg);
    min-width: 0;
}

.erp-auth__box {
    width: 100%;
    max-width: 470px;
}

.erp-auth__title {
    padding-bottom: 26px;
    text-align: center;
}

    .erp-auth__title h2 {
        font-size: 32px;
        line-height: 1.15;
    }

    .erp-auth__title p {
        color: var(--verdicta-gray);
        font-size: 15px;
        line-height: 24px;
        margin-top: 10px;
    }

.erp-auth__card {
    padding: 40px 38px 34px;
    background: var(--verdicta-white);
    border: 1px solid var(--erp-line-soft);
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow);
}

.erp-auth__form .erp-field {
    margin-bottom: 18px;
}

/* Giriş ekranında girdiler panelden biraz daha iri */
.erp-auth__form .erp-input {
    height: 52px;
    line-height: 50px;
    font-size: 14.5px;
}

/* Alan başı simge */
.erp-auth__input {
    position: relative;
}

    .erp-auth__input > i:first-child {
        position: absolute;
        inset-inline-start: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--verdicta-base);
        font-size: 14px;
        pointer-events: none;
    }

    .erp-auth__input .erp-input {
        padding-inline-start: 44px;
    }

/* Parola göster/gizle düğmesi */
.erp-auth__reveal {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--verdicta-gray);
    font-size: 15px;
    transition: color 300ms ease;
}

    .erp-auth__reveal:hover {
        color: var(--verdicta-base);
    }

.erp-auth__input .erp-input[type="password"],
.erp-auth__input .erp-input.has-reveal {
    padding-inline-end: 52px;
}

/* Güvenlik kodu satırı */
.erp-auth__captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .erp-auth__captcha img {
        height: 52px;
        border-radius: var(--erp-radius-sm);
        border: 1px solid var(--erp-line);
        background: var(--erp-canvas);
    }

.erp-auth__captcha-refresh {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--erp-line);
    border-radius: var(--erp-radius-sm);
    color: var(--erp-ink-soft);
    font-size: 14px;
    transition: var(--erp-ease);
}

    .erp-auth__captcha-refresh:hover {
        background: var(--verdicta-black);
        border-color: var(--verdicta-black);
        color: var(--verdicta-white);
    }

/* Beni hatırla satırı */
.erp-auth__remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 22px;
}

    .erp-auth__remember label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--erp-ink-soft);
        font-size: 13.5px;
        cursor: pointer;
    }

    .erp-auth__remember input[type="checkbox"] {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: var(--verdicta-base);
        cursor: pointer;
    }

/* Alan bazlı doğrulama geri bildirimi */
.erp-auth__error {
    display: block;
    margin-top: 6px;
    color: var(--erp-danger);
    font-size: 12.5px;
    line-height: 18px;
}

    .erp-auth__error:empty {
        display: none;
    }

.erp-auth .input-validation-error {
    border-color: var(--erp-danger);
    background-color: var(--erp-danger-bg);
}

/* Sunucu / doğrulama özeti kutusu */
.erp-auth__notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: var(--erp-radius-sm);
    font-size: 14px;
    line-height: 21px;
}

    .erp-auth__notice i {
        flex: 0 0 auto;
        margin-top: 3px;
    }

    .erp-auth__notice ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

.erp-auth__notice--danger {
    background: var(--erp-danger-bg);
    color: #8f322b;
}

.erp-auth__notice--success {
    background: var(--erp-success-bg);
    color: #14704b;
}

.erp-auth__notice--info {
    background: var(--erp-info-bg);
    color: #2c5f7a;
}

/* Doğrulama özeti boşsa (validation-summary-valid) görünmesin */
.erp-auth__notice.validation-summary-valid {
    display: none;
}

/* Gönderim düğmesi */
.erp-auth__submit {
    height: 50px;
    font-size: 13.5px;
}

    .erp-auth__submit .erp-spinner {
        display: none;
        width: 15px;
        height: 15px;
        border: 2px solid rgba(255, 255, 255, .45);
        border-top-color: #fff;
    }

    .erp-auth__submit.is-busy .erp-spinner {
        display: inline-block;
    }

/* Alt bağlantı */
.erp-auth__back {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
}

    .erp-auth__back a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--verdicta-gray);
    }

        .erp-auth__back a:hover {
            color: var(--verdicta-base);
        }

/*-------------------------------------------------- Duyarlı */
@media (max-width: 1199px) {
    .erp-auth__aside {
        padding: 40px 38px;
        flex-basis: 42%;
    }

    .erp-auth__pitch h2 {
        font-size: 32px;
    }

    .erp-auth__modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .erp-auth {
        flex-direction: column;
    }

    .erp-auth__aside {
        flex: 0 0 auto;
        max-width: none;
        padding: 28px 24px;
    }

    .erp-auth__pitch, .erp-auth__foot {
        display: none;
    }

    .erp-auth__panel {
        padding: 32px 18px 48px;
    }
}

@media (max-width: 575px) {
    .erp-auth__card {
        padding: 30px 22px 26px;
    }

    .erp-auth__title h2 {
        font-size: 27px;
    }

    .erp-auth__remember {
        flex-direction: column;
        align-items: flex-start;
    }
}
