/* Login.css - Shared styles for the Login, Password Recovery, Password Reset, and
   Password Recovery Confirmation pages (hero, sign-in card, no-scroll layout) */

/* Fixed-height, non-scrolling viewport - scoped to the Login page only */
body.login-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.login-page #wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: auto;
    max-width: none;
    margin: 0;
    box-shadow: none;
    overflow: visible;
}

body.login-page #content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* Neutralize the shared .l2-body-inner content wrapper so the hero section
   keeps its full-bleed flex layout instead of being inset 25% */
body.login-page .l2-body-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

body.login-page footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Hero / sign-in split section */
.l2-hero {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.l2-hero-left,
.l2-hero-right {
    flex: 1 1 50%;
    min-width: 0;
    box-sizing: border-box;
}

.l2-hero-left {
    background-image: url('images/sign-in-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
    padding: 40px 60px 40px 17%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.l2-hero-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #011e41;
    opacity: 0.9;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.l2-hero-left > * {
    position: relative;
    z-index: 2;
}

.l2-hero-right {
    background-image: url('images/sign-in-background.jpg');
    background-size: cover;
    background-position: center;
}

.l2-hero-heading {
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    padding: 0;
    margin-bottom: 22px;
}

.l2-hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.l2-hero-list li {
    border-left: 4px solid #C40D3C;
    padding: 7px 0 7px 15px;
    margin-bottom: 12px;
    font-size: 17px;
}

/* Sign-in card */
body.login-page .l2-signin-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
    width: 330px;
    padding: 35px 40px 40px;
    z-index: 10;
}

body.login-page .l2-card-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    text-transform: none;
}

body.login-page .l2-form-group {
    margin-bottom: 18px;
}

body.login-page .l2-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

body.login-page .l2-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 20px;
    font-size: 14px;
    box-sizing: border-box;
}

body.login-page .l2-form-group input:focus {
    outline: none;
    border: 1px solid #011e41;
}

body.login-page .l2-forgot-link {
    display: block;
    text-align: right;
    color: #1a56c4;
    font-size: 14px;
    margin-bottom: 20px;
    text-decoration: none;
}

body.login-page .l2-forgot-link:hover {
    color: #1a56c4;
    text-decoration: underline;
}

body.login-page .l2-signin-submit {
    display: block;
    width: 100%;
    background-color: #C40D3C;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 22px;
    padding: 12px 0;
    margin: 0;
    float: none;
    position: static;
    text-transform: none;
    cursor: pointer;
}

body.login-page .l2-signin-submit:hover {
    background-color: #3e3e3e;
}

body.login-page .l2-card-accent {
    color: #C40D3C;
}

body.login-page .l2-card-subtext {
    font-size: 14px;
    color: #444444;
    line-height: 1.5;
    margin: 0 0 18px;
}

body.login-page .l2-link {
    color: #1a56c4;
    text-decoration: none;
}

body.login-page .l2-link:hover {
    text-decoration: underline;
}

body.login-page .l2-message-error {
    color: #c92e2f;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 18px;
}

body.login-page .l2-back-link {
    display: block;
    text-align: center;
    color: #1a56c4;
    font-size: 14px;
    margin-top: 4px;
    text-decoration: none;
}

body.login-page .l2-back-link:hover {
    color: #1a56c4;
    text-decoration: underline;
}

/* Validation */
.l2-validation-summary {
    color: #c92e2f;
    font-size: 13px;
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
}

.l2-field-error {
    color: #c92e2f;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    body.login-page {
        height: auto;
        overflow: visible;
    }

    body.login-page #wrapper,
    body.login-page #content {
        display: block;
    }

    body.login-page footer {
        display: block;
    }

    .l2-hero {
        flex: 0 0 auto;
        flex-direction: column;
        min-height: 0;
    }

    .l2-hero-left,
    .l2-hero-right {
        flex: 1 1 auto;
    }

    .l2-hero-left {
        padding: 40px 20px;
    }

    .l2-hero-right {
        min-height: 260px;
    }

    body.login-page .l2-signin-card {
        position: static;
        transform: none;
        width: auto;
        margin: -60px 20px 30px;
    }
}
