/* ---------------------------------------------------
    LOGIN PAGE (website/page/page-home.blade.php)
    Responsive layout, CSS only: no change to the page structure.
    Loaded at the end of the page so it overrides the inline styles.
----------------------------------------------------- */

/* Header, photo and footer fill the screen: no white gap under the footer */
html, body { height: 100%; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f5e3f;
}
body > .content-header,
body > .content-footer { flex: 0 0 auto; }

/* ---------- Photo with the login box on top ---------- */
body > .login-main {
    flex: 1 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    overflow: hidden;
}
body > .login-main > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
body > .login-main .login-main-form {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 40px 0;
}
body > .login-main form {
    float: right;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    background: rgba(1, 100, 64, .82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
body > .login-main form h2 { font-size: 1.75rem; padding-bottom: 10px; }
body > .login-main form label { display: block; margin: 0; }
body > .login-main form input.form-control {
    margin: 8px 0;
    height: 48px;
    font-size: 16px; /* no zoom on iOS */
}
body > .login-main form .btn { margin-top: 8px; }

/* Desktop: login box sits at the bottom right of the photo */
@media (min-width: 992px) {
    body > .login-main { align-items: flex-end; }
    body > .login-main .login-main-form { padding: 0 0 24px; }
}

/* ---------- Header ---------- */
.content-header .r-gap p { margin-bottom: 0; }
.content-header .navbar { padding: 4px 0; }
.content-header .navbar-toggler { border-color: rgba(255, 255, 255, .5); }
/* Menu links sit on the right, in line with the contact text above */
.content-header .navbar-collapse { justify-content: flex-end; }
.content-header .navbar-nav { margin-left: auto !important; margin-right: 0 !important; }
.content-header .navbar-nav .nav-item:last-child .nav-link { padding-right: 0; }

/* ---------- Footer ---------- */
body > .content-footer { padding: 24px 12px; }
body > .content-footer h2 { font-size: 1.5rem; }

/* ---------- Tablets ---------- */
@media (max-width: 991.98px) {
    .content-header .row { align-items: center; }
    .content-header .navbar { justify-content: flex-end; }
    .content-header .navbar-collapse { background: rgba(0, 0, 0, .15); border-radius: 6px; padding: 0 12px; }
    body > .login-main form { float: none; margin: 0 auto; }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
    .content-header .row > [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; margin-left: 0; }
    .content-header .r-logo { text-align: center; margin-bottom: 0; }
    .content-header .r-logo img { max-width: 90px; display: inline-block; }
    .content-header .r-gap { margin: 8px 0; }
    .content-header .r-gap p.text-end { text-align: center !important; font-size: 13px; line-height: 1.4; }
    .content-header .navbar { justify-content: center; }

    body > .login-main { min-height: 420px; }
    body > .login-main .login-main-form { padding: 24px 0; }
    body > .login-main form { padding: 22px 18px; border-radius: 10px; }
    body > .login-main form h2 { font-size: 1.4rem; text-align: center; }

    body > .content-footer h2 { font-size: 1.2rem; }
    body > .content-footer p { font-size: 13px; }
}
