﻿/* =========================
   Base / full screen
   ========================= */
html, body {
    height: 100%;
    margin: 0;
}



.login-page {
    height: 100vh;
    width: 100%;
    background: #fff;
}

.login-card {
    height: 100vh;
    width: 100%;
    min-height: 0;
    display: grid;
    overflow: hidden;
    grid-template-columns: 640px 1fr;
}

/* =========================
   Left panel
   ========================= */
.login-left {
    background: #fff;
    border-right: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: 56px 64px 10px 64px;
    box-sizing: border-box;
}

.login-left-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.password-wrap {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 6px;
    line-height: 0;
}
/* content centered vertically */
.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.field {
    position: relative;
}

.field-label {
    position: absolute;
    left: 16px;
    top: 8px;
    font-size: 0.78rem;
    color: #9ca3af;
    pointer-events: none; 
    background: transparent;
}

.login-input.form-control-lg {
    height: 72px;
    padding-top: 24px; 
    padding-bottom: 10px;
    line-height: 1.2;
}

.field:focus-within .field-label {
    color: #2563eb;
}
.toggle-password .icon-eye-off {
    display: none;
}

.toggle-password.is-visible .icon-eye {
    display: none;
}

.toggle-password.is-visible .icon-eye-off {
    display: inline;
}
/* header */
.aurora-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aurora-mark {
    height: 40px;
    width: auto;
}

.aurora-word {
    font-weight: 800;
    letter-spacing: .08em;
    color: #0b3b8a;
}

.divider {
    height: 1px;
    background: #dbe3ef;
    margin: 22px 0 28px 0;
}

.login-title {
    font-size: 34px;
    line-height: 1.1;
    margin: 0;
    font-weight: 700;
    color: #0b3b8a;
}

.login-subtitle {
    margin: 10px 0 22px 0;
    color: #6b7280;
    font-size: 13px;
}

/* inputs */
.login-input {
    border-radius: 12px;
    border: 1px solid #d1d5db;
}

    .login-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .20);
        outline: none;
    }

/* password eye button */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 6px;
    line-height: 0;
}

    .toggle-password:hover {
        color: #6b7280;
    }

/* checkbox focus */
.form-check-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .20);
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* buttons */
.btn-login-primary {
    height: 46px;
    border-radius: 12px;
    background: #d6001c;
    color: #fff;
    font-weight: 700;
    border: none;
}

    .btn-login-primary:hover {
        background: #c40019;
        color: #fff;
    }

.btn-login-stena-outline {
    height: 46px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #d6001c;
    color: #d6001c;
    font-weight: 700;
}

    .btn-login-stena-outline:hover {
        background: rgba(214, 0, 28, 0.06);
        color: #d6001c;
        border-color: #d6001c;
    }

    .btn-login-stena-outline:disabled {
        opacity: .6;
    }

/* OR line */
.or-row {
    margin: 14px 0;
    position: relative;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

    .or-row::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: #e5e7eb;
    }

    .or-row span {
        position: relative;
        padding: 0 10px;
        background: #fff;
    }

.login-footer {
    margin-top: 0;
    padding: 0;
    font-size: 10px;
    color: #b0b6c2;
    text-align: center;
}

/* =========================
   Right panel (hero image)
   ========================= */
.login-right {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #0b3b8a; /* fallback */
}
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}
.login-hero {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
    object-position: center 30%;
}
.login-right {
    position: relative;
    height: 100%;
    background-image: url('/assets/images/bg-img-enhanced-optimised.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    /* tweak this to show more of the ship */
    background-position: center 30%;
}

/* brand bottom-right */
.login-right-brand {
    position: absolute;
    right: 28px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.95);
    font-weight: 800;
    letter-spacing: .08em;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

    .login-right-brand img {
        height: 34px;
        width: auto;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
    }

/* =========================
   MEDIUM: still side-by-side, image narrower
   ========================= */
@media (max-width: 1100px) {
    .login-card {
        grid-template-columns: 560px 360px;
    }

    .login-left {
        padding: 48px 44px 10px 44px;
    }

    .login-left-inner {
        max-width: 400px;
    }
}

/* =========================
   MOBILE: stacked (form top, image bottom)
   ========================= */
@media (max-width: 780px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-left {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
        padding: 34px 18px 10px 18px;
    }

    .login-left-inner {
        max-width: 420px;
    }

    .login-title {
        font-size: 30px;
    }

    .login-right {
        height: 280px;
        background-position: center 35%;
    }
}

/* small phones */
@media (max-width: 420px) {
    .login-right {
        height: 240px;
    }
}
