/* PWM_Operations_Hub/static/css/login.css */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 64% 36%;
    overflow: hidden;
}

/* LEFT SIDE */

.login-left {
    position: relative;
    padding: 64px 80px 32px;
    background: var(--pwm-white);
    display: flex;
    flex-direction: column;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 52px;
}

.company-logo {
    width: 340px;
    max-width: 40vw;
    height: auto;
}

.header-divider {
    width: 1px;
    height: 92px;
    background: #c9cdd3;
}

.login-header h1 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--pwm-black);
}

.login-header p {
    margin: 0;
    font-size: 18px;
    color: var(--pwm-grey);
}

.login-card {
    width: 100%;
    max-width: 540px;
    background: var(--pwm-white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 34px 40px 36px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
    margin-left: 90px;
}

.login-card h2 {
    margin: 0 0 28px;
    font-size: 32px;
    font-weight: 800;
}

.login-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-input-wrapper input {
    padding-left: 48px;
    padding-right: 48px;
}

.input-icon,
.input-icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pwm-grey);
    font-size: 18px;
}

.input-icon {
    left: 16px;
}

.input-icon-right {
    right: 16px;
}

.password-toggle {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.password-toggle:hover {
    color: var(--pwm-blue);
}

.password-toggle:focus {
    outline: none;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--pwm-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 28px;
    font-size: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pwm-black);
}

.remember-me input {
    width: 20px;
    height: 20px;
}

.forgot-link {
    color: var(--pwm-blue);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.sign-in-button {
    width: 100%;
    height: 54px;
    font-size: 18px;
}

.login-footer {
    margin-top: auto;
    display: flex;
    gap: 28px;
    align-items: center;
    color: var(--pwm-grey);
    font-size: 14px;
}

.login-footer a {
    color: var(--pwm-blue);
    text-decoration: none;
    border-left: 1px solid #d1d5db;
    padding-left: 28px;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* RIGHT SIDE */

.login-right {
    position: relative;
    margin-left: -90px;
    padding: 64px 48px 64px 130px;
    background:
        linear-gradient(
            rgba(0, 47, 86, 0.94),
            rgba(0, 47, 86, 0.96)
        );
    color: var(--pwm-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    isolation: isolate;

    /* This makes the blue panel itself diagonal */
    clip-path: polygon(90px 0, 100% 0, 100% 100%, 0 100%);
}

.login-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(31, 120, 184, 0.3), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
    z-index: -2;
}

/* This is now only the light blue diagonal border line */
.login-right::after {
    content: "";
    position: absolute;
    left: 43px;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--pwm-blue-light);
    transform: skewX(-10deg);
    transform-origin: top;
    z-index: -1;
}

.building-photo-wrap {
    width: 245px;
    height: 245px;
    border-radius: 50%;
    border: 5px solid var(--pwm-blue-light);
    padding: 7px;
    margin-bottom: 42px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.building-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.welcome-content {
    text-align: center;
}

.welcome-content h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.28;
    font-weight: 800;
}

.welcome-line {
    width: 88px;
    height: 4px;
    background: var(--pwm-blue-light);
    margin: 22px auto;
    border-radius: 999px;
}

.welcome-content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.feature-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 28px;
    margin-top: 48px;
}

.feature-item {
    text-align: center;
    min-width: 110px;
}

.feature-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-item span {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.feature-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.35);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-right {
        display: none;
    }

    .login-left {
        padding: 48px 32px 28px;
        align-items: center;
    }

    .login-header {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .header-divider {
        display: none;
    }

    .company-logo {
        max-width: 360px;
        width: 80%;
    }

    .login-card {
        margin-left: 0;
    }

    .login-footer {
        margin-top: 32px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .login-left {
        padding: 32px 18px 24px;
    }

    .login-header h1 {
        font-size: 30px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .login-footer {
        font-size: 13px;
        gap: 14px;
    }

    .login-footer a {
        border-left: none;
        padding-left: 0;
    }
}

.password-help-text {
    margin: -8px 0 24px;
    color: var(--pwm-grey);
    font-size: 15px;
    line-height: 1.5;
}

.password-link-row {
    margin-top: 18px;
    text-align: center;
}

.password-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}