.login-page {
    overflow-x: hidden;
    background: var(--mgdc-bg-dark);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(420px, 1.1fr) minmax(380px, 0.9fr);
    min-height: 100vh;
}

.login-brand-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-image: url("../images/login-towers.png");
    background-size: cover;
    background-position: center;
}

.login-brand-panel::after {
    position: absolute;
    right: -7%;
    bottom: -10%;
    width: 48%;
    height: 48%;
    content: "";
    background: radial-gradient(circle, rgba(244, 176, 66, 0.28), transparent 66%);
    filter: blur(8px);
}

.login-brand-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 59, 31, 0.94), rgba(0, 150, 64, 0.55) 46%, rgba(8, 17, 31, 0.76)),
        linear-gradient(0deg, rgba(8, 17, 31, 0.38), rgba(8, 17, 31, 0.02));
}

.login-brand-content {
    position: relative;
    z-index: 1;
    width: min(78%, 700px);
    text-align: center;
    color: #ffffff;
    animation: fadeUp 0.8s ease both;
}

.login-logo {
    width: clamp(150px, 20vw, 230px);
    margin-bottom: 28px;
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.35));
}

.login-brand-content h1 {
    margin: 0 auto 12px;
    max-width: 760px;
    font-size: clamp(1.9rem, 4.2vw, 4.2rem);
    font-weight: 900;
    line-height: 1;
}

.login-brand-content p {
    margin: 0;
    color: #dbffe8;
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
}

.login-brand-content span {
    display: inline-block;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.login-form-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 44px;
    background:
        radial-gradient(circle at 78% 12%, rgba(244, 176, 66, 0.22), transparent 30%),
        radial-gradient(circle at 12% 88%, rgba(0, 150, 64, 0.18), transparent 32%),
        linear-gradient(145deg, #f8fbf9, #eef5f1 50%, #ffffff);
}

.login-card {
    width: min(100%, 475px);
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 80px rgba(0, 59, 31, 0.18);
    backdrop-filter: blur(18px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeUp 0.8s ease 0.08s both;
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 32px 90px rgba(0, 150, 64, 0.18);
}

.login-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.login-card-header img {
    width: 78px;
    height: auto;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--mgdc-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0;
    color: var(--mgdc-dark);
    font-size: 2rem;
    font-weight: 900;
}

.login-form label {
    color: var(--mgdc-dark);
    font-size: 0.9rem;
    font-weight: 800;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.input-shell > .fa {
    position: absolute;
    left: 16px;
    z-index: 2;
    color: #00853a;
}

.input-shell .form-control {
    min-height: 52px;
    padding-left: 46px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
}

.password-toggle {
    position: absolute;
    right: 8px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    color: var(--mgdc-muted);
    background: transparent;
}

.password-toggle:hover {
    color: var(--mgdc-primary);
    background: rgba(0, 150, 64, 0.08);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 24px;
    color: var(--mgdc-muted);
    font-size: 0.92rem;
}

.remember-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.login-options a {
    color: var(--mgdc-primary);
    font-weight: 800;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--mgdc-primary), var(--mgdc-dark));
    box-shadow: 0 16px 32px rgba(0, 150, 64, 0.28);
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-button:hover,
.login-button:focus {
    color: #ffffff;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 20px 42px rgba(0, 150, 64, 0.35);
}

.login-footer {
    margin-top: 24px;
    color: var(--mgdc-muted);
    font-size: 0.83rem;
    text-align: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 42vh;
        padding: 42px 20px;
    }

    .login-form-panel {
        min-height: 58vh;
        padding: 28px 18px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
    }

    .login-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
