/* Standard Dekstop Styling */
html {
    height: -webkit-fill-available; /* Prevent mobile webkit browsers from dropping footer behind the navigation bar */
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Prevent mobile webkit browsers from dropping footer behind the navigation bar */

    /* poSell: giriş ekranı zemini tanıtım sayfası ve kayıt akışıyla AYNI kremdir.
       Ölçüldü: Bootswatch varsayılanı #eaeded (gri-mavi) geliyordu, landing ve
       signup.php ise --ps-paper (#faf8f5) kullanıyor — üç sayfa yan yana konunca
       giriş ekranı yabancı duruyordu. Token yüklü ama kullanılmıyordu.
       CLAUDE.md §4: sabit hex yazma, kayıt akışı AÇIK moddadır. */
    background: var(--ps-paper, #faf8f5);
}

.container-login,
.footer {
    max-width: 720px;
}

.container-login {
    min-height: 405px;
}

.box-logo {
    width: 40%;
}

.logo {
    object-fit: contain; /* Logo contains aspect ratio */
    max-width: 405px; /* Prevent horizontal logo going too big on large mobile screens */
    max-height: calc(405px - 3rem); /* Container height minus container padding */
}

/* poSell markası — giriş ekranı varsayılan logosu (kiracı kendi logosunu yüklerse
   img.logo dalı çalışır ve bunlar hiç görünmez).
   Renkler artık TOKEN'dan geliyor (public/css/posell/tokens.css) — sabit hex yazılıydı
   ve marka değişince burası geride kalıyordu. Webfont hâlâ dış kaynaktan ÇEKİLMİYOR
   (CSP + çevrimdışı kasa), ama artık self-host edildiği için `--ps-font-ui` gerçekten
   Familjen Grotesk'i gösteriyor; aşama 2'ye kadar sessizce sistem fontuna düşüyordu. */
.brandtype {
    font-family: var(--ps-font-ui);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--ps-ink);
}

.brandtype-s {
    color: var(--ps-brand);
}

/* Amblem kare (120x120); .logo'nun 405px sınırı yatay logolar içindi ve kare amblemi
   devasa gösteriyordu. */
svg.logo {
    max-width: 160px;
}

img.logo {
    filter: drop-shadow(1px 0 0 rgba(255, 255, 255, 0.87)) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.87)) drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.87)) drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.87)); /* White border around Company Logo for correct display on darker themes */
}

.box-login {
    width: 60%;
}

.box-login form {
    width: 100%; /* Login box content full width */
}

.box-login .form-floating:focus-within,
.box-login .input-group:focus-within {
    z-index: 2;
}

.box-login input[name="username"],
.box-login span[id="input-username"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.box-login input[name="password"],
.box-login span[id="input-password"] {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.alert div:not(:first-child) {
    margin-top: 1rem; /* Space between multiple validation errors */
}

.bi {
    height: 1em;
}

footer a:not(:hover) {
    text-decoration: none;
}

/* Mobile Styling */
@media (max-width: 767.98px) {
    .container-login {
        min-height: auto;
    }

    .box-logo,
    .box-login {
        width: 100%;
    }

    .box-logo {
        border-right: none !important;
    }

    .logo {
        max-height: 150px;
    }

    svg.logo {
        max-width: 110px;
    }

    .brandtype {
        font-size: 1.4rem;
    }

    .footer {
        max-width: 100%;
        border-radius: 0 !important;
    }
}

/* QHD Styling */
@media (min-width: 2560px) {
    .container-login,
    .footer {
        max-width: 960px;
    }

    .container-login {
        min-height: 540px;
    }

    .logo {
        max-height: calc(540px - 3rem);
    }
}

/* 4K Styling */
@media (min-width: 3840px) {
    .container-login,
    .footer {
        max-width: 1140px;
    }

    .container-login {
        min-height: 641.25px;
    }

    .logo {
        max-height: calc(641.25px - 3rem);
    }
}

/* Specific Styling */
@media (max-width: 359.98px) {
    .g-recaptcha {
        overflow-x: auto; /* Makes sure reCAPTCHA is usable on the smallest screens */
        min-height: 86px;
    }
}
