/* ==========================================================================
   OtoMet Portal - Login ekrani
   Sol: marka paneli / Sag: giris formu - gradient arka plan uzerinde card
   ========================================================================== */

.login-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    background:
        radial-gradient(1200px 600px at 12% 18%, rgba(31, 122, 201, .18), transparent 60%),
        radial-gradient(900px 500px at 88% 82%, rgba(13, 59, 102, .16), transparent 60%),
        linear-gradient(135deg, #eef3f9 0%, #e4edf6 45%, #dde8f3 100%);
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    width: 100%;
    max-width: 980px;
    min-height: 560px;
    background: var(--otomet-white);
    border-radius: var(--otomet-radius-lg);
    box-shadow: var(--otomet-shadow-lg);
    overflow: hidden;
    animation: loginCardIn .5s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   SOL PANEL - Marka
   -------------------------------------------------------------------------- */

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.75rem 2.5rem;
    color: var(--otomet-white);
    background: linear-gradient(150deg, var(--otomet-blue-900) 0%, var(--otomet-blue-800) 50%, var(--otomet-blue-700) 100%);
    overflow: hidden;
}

    .login-brand::before,
    .login-brand::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, .06);
        pointer-events: none;
    }

    .login-brand::before {
        width: 320px;
        height: 320px;
        top: -110px;
        right: -110px;
    }

    .login-brand::after {
        width: 220px;
        height: 220px;
        bottom: -90px;
        left: -70px;
    }

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 1.7rem;
    margin-bottom: 1.35rem;
}

.brand-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: .3px;
    margin: 0 0 .35rem;
}

.brand-subtitle {
    color: rgba(255, 255, 255, .72);
    font-size: .95rem;
    margin: 0 0 2rem;
}

.brand-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .brand-features li {
        display: flex;
        align-items: center;
        gap: .7rem;
        padding: .5rem 0;
        color: rgba(255, 255, 255, .85);
        font-size: .9rem;
    }

        .brand-features li i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            flex: 0 0 30px;
            border-radius: 9px;
            background: rgba(255, 255, 255, .12);
            font-size: .82rem;
        }

.brand-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
}

/* --------------------------------------------------------------------------
   SAG PANEL - Form
   -------------------------------------------------------------------------- */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.25rem;
    background: var(--otomet-white);
}

.login-panel-inner {
    width: 100%;
    max-width: 380px;
}

.login-header {
    margin-bottom: 1.6rem;
}

    .login-header h2 {
        font-size: 1.45rem;
        font-weight: 700;
        color: var(--otomet-gray-900);
        margin: 0 0 .3rem;
    }

    .login-header p {
        color: var(--otomet-gray-600);
        font-size: .9rem;
        margin: 0;
    }

.login-logo-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--otomet-white);
    background: linear-gradient(135deg, var(--otomet-blue-600), var(--otomet-blue-900));
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .25rem 0 1.35rem;
}

    .login-options .form-check-label {
        font-size: .87rem;
        color: var(--otomet-gray-700);
        cursor: pointer;
    }

    .login-options .form-check-input {
        cursor: pointer;
    }

        .login-options .form-check-input:checked {
            background-color: var(--otomet-blue-600);
            border-color: var(--otomet-blue-600);
        }

.link-forgot {
    font-size: .85rem;
    font-weight: 500;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--otomet-gray-500);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {

    .login-card {
        grid-template-columns: 1fr;
        max-width: 460px;
        min-height: auto;
    }

    .login-brand {
        display: none;
    }

    .login-logo-mobile {
        display: inline-flex;
    }

    .login-header {
        text-align: center;
    }
}

@media (max-width: 575.98px) {

    .login-wrapper {
        padding: .85rem;
    }

    .login-card {
        border-radius: var(--otomet-radius);
    }

    .login-panel {
        padding: 1.85rem 1.25rem;
    }

    .login-header h2 {
        font-size: 1.25rem;
    }
}

@media (min-height: 900px) and (min-width: 992px) {

    .login-card {
        min-height: 600px;
    }
}
