:root {
    --tagco-blue: #0d47a1;
    --tagco-blue-dark: #06357d;
    --tagco-green: #00843d;
    --tagco-yellow: #ffcc00;
    --tagco-ink: #111827;
    --tagco-muted: #6b7280;
    --tagco-border: #d8e0ea;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--tagco-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(13, 71, 161, 0.08), transparent 34%),
        linear-gradient(135deg, #edf4fc 0%, #f9fbff 100%);
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
}

.login-shell {
    width: min(1120px, 96vw);
    height: min(680px, 92vh);
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(13, 71, 161, 0.18);
}

/* LEFT PANEL */
.login-media {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--tagco-blue-dark);
}

.login-media-carousel,
.login-media-carousel .carousel-inner,
.login-media-carousel .carousel-item,
.tagco-brand-slide,
.managed-advert-slide {
    width: 100%;
    height: 100%;
}

.tagco-brand-slide {
    position: relative;
    color: #fff;
    background:
        linear-gradient(rgba(13, 71, 161, 0.90), rgba(4, 54, 125, 0.97)),
        url("../images/giraffe-bg-banner.png") center / cover no-repeat;
}

.tagco-brand-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 4vw, 54px);
    text-align: center;
}

.tagco-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 28px;
}

.tagco-government-logo,
.tagco-association-logo {
    display: block;
    object-fit: contain;
}

.tagco-government-logo {
    width: 94px;
    height: 94px;
}

.tagco-association-logo {
    width: 100px;
    height: 100px;
}

.tagco-brand-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 3.3vw, 30px);
    line-height: 1.08;
    font-weight: 850;
}

.tagco-organisation-name {
    max-width: 420px;
    margin: 18px auto 0;
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.45;
}

.tagco-accent-line {
    display: block;
    width: 72px;
    height: 5px;
    margin: 26px auto;
    border-radius: 999px;
    background: var(--tagco-yellow);
}

.tagco-brand-message {
    max-width: 440px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.65;
}

.tagco-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 48px;
}

.tagco-feature {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    text-align: center;
}

.tagco-feature i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
}

.tagco-feature strong {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
    font-size: 15px;
}

.tagco-feature span {
    display: block;
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.5;
}

.tagco-feature + .tagco-feature {
    border-left: 1px solid rgba(255, 255, 255, 0.38);
}



.managed-advert-slide,
.managed-advert-link,
.managed-advert-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.managed-advert-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.login-carousel-indicators {
    right: auto;
    bottom: 18px;
    left: 24px;
    justify-content: flex-start;
    margin: 0;
}

.login-carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    margin: 0 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
}

.login-carousel-indicators .active {
    width: 28px;
    background: var(--tagco-yellow);
}

.login-carousel-control {
    width: 50px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.login-media-carousel:hover .login-carousel-control {
    opacity: 1;
}

.login-control-circle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(3, 20, 50, 0.54);
}

/* RIGHT PANEL */
.login-form-section {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 5vw, 68px);
    background: #fff;
}

.login-form-container {
    width: min(100%, 450px);
}

.login-heading {
    margin-bottom: 30px;
    text-align: center;
}

.login-heading h2 {
    margin: 0;
    font-size: clamp(21px, 3vw, 23px);
    line-height: 1.1;
    font-weight: 850;
}

.login-heading p {
    margin: 10px 0 0;
    color: var(--tagco-muted);
    font-size: 14px;
}

.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 750;
}

.login-input-group {
    height: 58px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--tagco-border);
    border-radius: 13px;
    background: #fff;
}

.login-input-group:focus-within {
    border-color: rgba(13, 71, 161, 0.65);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.09);
}

.login-input-icon {
    display: grid;
    place-items: center;
    color: #6b7280;
    font-size: 19px;
}

.login-input-group input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 8px;
    border: 0;
    outline: 0;
    color: #273142;
    background: transparent;
    font-size: 15px;
}

.toggle-password {
    width: 52px;
    height: 100%;
    display: grid;
    place-items: center;
    border: 0;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    font-size: 19px;
}

.login-utility-row {
    display: flex;
    justify-content: flex-end;
    margin: -3px 0 28px;
}

.forgot-link,
.login-registration-link a {
    color: var(--tagco-blue);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.login-submit-button {
    width: 100%;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--tagco-blue), #0865ce);
    box-shadow: 0 12px 28px rgba(13, 71, 161, 0.25);
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 28px 0 20px;
    color: #6b7280;
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e8ef;
}

.login-registration-link,
.login-copyright {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.login-copyright {
    margin: 66px 0 0;
    color: #84909e;
    font-size: 12px;
}

/* MODAL */
.contact-admin-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
}

.contact-admin-modal .modal-header {
    padding: 18px 22px;
    color: #fff;
    border-bottom: 0;
    background: linear-gradient(135deg, var(--tagco-blue), var(--tagco-blue-dark));
}

.contact-admin-modal .btn-close {
    filter: invert(1);
}

.contact-admin-modal .modal-body {
    padding: 22px;
}

.admin-contact-intro {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-left: 4px solid var(--tagco-blue);
    border-radius: 10px;
    background: #f3f7fc;
}

.admin-contact-intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.admin-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-contact-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5edf7;
    border-radius: 12px;
}

.admin-contact-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--tagco-blue);
    background: #e8f1ff;
}

.admin-contact-icon.whatsapp {
    color: #128c4a;
    background: #e8f8ef;
}

.admin-contact-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

.admin-contact-item a,
.admin-contact-item span {
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
}

/* SHORT DESKTOP */
@media (min-width: 769px) and (max-height: 740px) {
    .login-page {
        padding: 14px;
    }

    .login-shell {
        height: min(610px, 94vh);
        min-height: 540px;
    }

    .tagco-brand-inner {
        padding: 28px 38px;
    }

    .tagco-logo-row {
        margin-bottom: 20px;
    }

    .tagco-government-logo {
        width: 76px;
        height: 76px;
    }

    .tagco-association-logo {
        width: 82px;
        height: 82px;
    }

    .tagco-feature-grid {
        margin-top: 28px;
    }

    .login-form-section {
        padding: 32px 48px;
    }

    .login-heading p {
        display: none;
    }

    .login-field {
        margin-bottom: 17px;
    }

    .login-input-group {
        height: 52px;
    }

    .login-copyright {
        margin-top: 38px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .login-page {
        display: block;
        min-height: 100vh;
        padding: 0;
    }

    .login-shell {
        width: 100%;
        min-height: 100vh;
        height: auto;
        display: block;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
    }

    .login-media {
        width: 100%;
        height: 250px;
        border-radius: 0 0 28px 28px;
        box-shadow: 0 12px 28px rgba(13, 71, 161, 0.14);
    }

    .tagco-brand-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 20px;
        padding: 28px 24px 42px;
        text-align: left;
    }

    .tagco-logo-row {
        gap: 8px;
        margin: 0;
    }

    .tagco-government-logo {
        width: 58px;
        height: 58px;
    }

    .tagco-association-logo {
        width: 62px;
        height: 62px;
    }

    .tagco-brand-copy h1 {
        font-size: 24px;
    }

    .tagco-organisation-name {
        margin: 8px 0 0;
        font-size: 13px;
        line-height: 1.35;
    }

    .tagco-accent-line {
        width: 48px;
        height: 4px;
        margin: 13px 0;
    }

    .tagco-brand-message {
        font-size: 12px;
        line-height: 1.4;
    }

    .tagco-feature-grid {
        display: none;
    }

    .login-carousel-control {
        display: none;
    }

    .login-form-section {
        display: block;
        min-height: calc(100vh - 250px);
        padding: 36px 24px 28px;
    }

    .login-form-container {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .login-copyright {
        margin-top: 44px;
    }
}

@media (max-width: 480px) {
    .login-media {
        width: 100%;
        height: auto;
        aspect-ratio: 7 / 5;
        overflow: hidden;
        border-radius: 0 0 28px 28px;
    }

    .managed-advert-slide,
    .managed-advert-link,
    .managed-advert-slide picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .managed-advert-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .login-form-section {
        min-height: auto;
        padding: 30px 18px 24px;
    }


    .tagco-brand-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 20px 38px;
        text-align: center;
    }

    .tagco-logo-row {
        justify-content: center;
    }

    .tagco-government-logo {
        width: 48px;
        height: 48px;
    }

    .tagco-association-logo {
        width: 52px;
        height: 52px;
    }

    .tagco-brand-copy h1 {
        font-size: 21px;
    }

    .tagco-organisation-name {
        display: none;
    }

    .tagco-accent-line {
        margin: 10px auto;
    }

    .tagco-brand-message {
        max-width: 320px;
        margin: 0 auto;
        font-size: 11.5px;
    }

    .login-form-section {
        min-height: calc(100vh - 220px);
        padding: 30px 18px 24px;
    }

    .login-heading h2 {
        font-size: 27px;
    }

    .login-input-group,
    .login-submit-button {
        height: 54px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .login-media {
        width: 100%;
        height: auto;
        aspect-ratio: 7 / 5;
        max-height: 360px;
    }
}

.tagco-logo-divider {
    width: 1px;
    height: 76px;
    flex: 0 0 1px;
    background: rgba(255, 255, 255, 0.48);
}

@media (min-width: 769px) and (max-height: 740px) {
    .tagco-logo-divider {
        height: 62px;
    }
}

@media (max-width: 768px) {
    .tagco-logo-divider {
        height: 46px;
        background: rgba(255, 255, 255, 0.42);
    }
}

@media (max-width: 480px) {
    .tagco-logo-divider {
        height: 38px;
    }
}