/* Login page (resources/views/LoginWeb/Login.blade.php) */
:root {
    --ct-brand: #008000;
    --ct-brand-dark: #006400;
    --ct-brand-deep: #004d1a;
    --ct-accent: #ffd54a;
    --ct-text: #1f2a37;
    --ct-muted: #6b7684;
    --ct-border: #d9e0e7;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    color: var(--ct-text);
    background: #f3f6f4;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

/* ---------- Brand / support desk panel ---------- */
.login-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 44px 56px 32px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.10) 0, transparent 38%),
        radial-gradient(circle at 10% 90%, rgba(255, 213, 74, 0.12) 0, transparent 40%),
        linear-gradient(150deg, var(--ct-brand) 0%, var(--ct-brand-dark) 55%, var(--ct-brand-deep) 100%);
}

.login-hero-logo {
    height: 46px;
    width: auto;
    align-self: flex-start;
}

.login-hero-copy {
    max-width: 460px;
}

.login-hero-copy h1 {
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 12px;
}

.login-hero-copy p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 26px;
}

.login-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
}

.login-points i {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ct-accent);
    background: rgba(255, 255, 255, 0.12);
}

.login-hero-art {
    position: absolute;
    right: 36px;
    bottom: 56px;
    width: 220px;
    height: auto;
    opacity: 0.95;
}

.login-hero-foot {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Sign in ---------- */
.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.login-copy {
    max-width: 400px;
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ct-muted);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 36px 34px 30px;
    background: #fff;
    border: 1px solid #e6ebe8;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 40, 24, 0.08);
}

/* NPAV logo on the white card (dark text: it does not read on the green panel) */
.login-npav {
    display: block;
    height: 36px;
    width: auto;
    margin: 0 auto 22px;
}

.login-title {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
}

.login-subtitle {
    color: var(--ct-muted);
    margin: 0 0 26px;
}

.login-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #3b4654;
    margin-bottom: 6px;
}

.login-field {
    position: relative;
}

.login-field > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    color: #9aa5b1;
    pointer-events: none;
}

.login-field .form-control {
    height: 46px;
    padding-left: 42px;
    border-radius: 10px;
    border-color: var(--ct-border);
    font-size: 14px;
}

.login-field .form-control:focus {
    border-color: var(--ct-brand);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 0, 0.14);
}

.login-field .form-control:focus + .login-eye,
.login-field:focus-within > i {
    color: var(--ct-brand);
}

#Password {
    padding-right: 44px;
}

.login-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9aa5b1;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-eye:hover {
    background: #f1f5f2;
    color: var(--ct-brand);
}

input::placeholder {
    color: #b3bcc6 !important;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    font-size: 13px;
    color: #3b4654;
}

.login-remember .form-check-input {
    margin: 0;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.login-remember .form-check-input:checked {
    background-color: var(--ct-brand);
    border-color: var(--ct-brand);
}

.login-remember .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 0, 0.15);
    border-color: var(--ct-brand);
}

.login-remember label {
    cursor: pointer;
    user-select: none;
}

.login-btn {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: var(--ct-brand);
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-btn:hover,
.login-btn:focus {
    color: #fff;
    background: var(--ct-brand-dark);
}

.login-btn i {
    font-size: 20px;
}

.login-help {
    margin: 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--ct-muted);
}

@media (max-width: 1199.98px) {
    .login-hero {
        padding: 36px 36px 28px;
    }

    .login-hero-art {
        width: 150px;
        right: 24px;
        bottom: 48px;
    }
}

/* keep the illustration from overlapping the text on short screens */
@media (max-height: 720px) {
    .login-hero-art {
        display: none;
    }
}

/* ---------- Tablets and phones: compact header, card only ---------- */
@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .login-hero {
        padding: 18px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .login-hero-copy,
    .login-hero-art,
    .login-hero-foot {
        display: none;
    }

    .login-hero-logo {
        height: 38px;
        align-self: center;
    }

    .login-panel {
        justify-content: flex-start;
        padding-top: 28px;
    }
}

@media (max-width: 420px) {
    .login-card {
        padding: 26px 20px 22px;
        border-radius: 14px;
    }

    .login-title {
        font-size: 21px;
    }

    .login-npav {
        height: 30px;
        margin: 0 auto 18px;
    }
}
