@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html,
body.sums-login-page {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background: #ffffff !important;
    overflow-x: hidden;
}

body.sums-login-page .leftbg,
body.sums-login-page .rightbg {
    display: none !important;
}

body.sums-login-page.login {
    background: #ffffff !important;
    position: static !important;
    min-height: 100vh;
    min-height: 100dvh;
}

body.sums-login-page.login .wrapper {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    float: none !important;
}

.sums-login-layout {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.sums-login-hero {
    position: relative;
    flex: 0 0 60%;
    width: 60%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #2d5344;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
        url('../image/login-hero-bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
}

.hero-datetime {
    max-width: 320px;
}

.hero-time {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.hero-date {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
}

.hero-quote {
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
}

.hero-quote cite {
    display: block;
    margin-top: 18px;
    font-style: normal;
    font-size: 16px;
    opacity: 0.9;
}

.sums-login-panel {
    flex: 0 0 40%;
    width: 40%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 32px 28px 24px;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-panel-inner {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.login-brand {
    text-align: center;
    margin-bottom: 16px;
}

.login-brand img {
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
}

.login-brand h4,
.login-brand h4 span,
.login-brand #lblSchoolName {
    margin: 14px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #333333 !important;
    word-break: break-word;
}

.login-heading {
    margin: 0 0 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #555555;
}

.login-form-group {
    margin-bottom: 14px;
    width: 100%;
}

.login-form-group label,
.login-form-group .field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #888888;
}

.login-form-group .input-block-level,
.login-form-group input[type="text"],
.login-form-group input[type="password"],
body.sums-login-page input[type="text"],
body.sums-login-page input[type="password"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #d8dde3;
    border-radius: 4px;
    font-size: 16px;
    color: #333333;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.login-form-group .input-block-level:focus,
.login-form-group input[type="text"]:focus,
.login-form-group input[type="password"]:focus {
    outline: none;
    border-color: #1a5a8a;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 8px 0 22px;
    gap: 12px;
    width: 100%;
}

.login-options .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    float: none !important;
    width: 100%;
}

.login-options .remember input {
    margin: 0 !important;
    float: none !important;
    flex-shrink: 0;
}

.login-options .remember label {
    margin: 0;
    font-size: 13px;
    color: #666666;
}

.btn-sums-login {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 48px;
    border: none;
    border-radius: 4px;
    background: #1a5a8a !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 16px;
    box-shadow: none;
    text-shadow: none;
}

.btn-sums-login:hover,
.btn-sums-login:focus {
    background: #154a73 !important;
}

.login-status {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    word-break: break-word;
}

.login-forgot {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.login-forgot a {
    color: #1a5a8a !important;
    text-decoration: none;
    font-weight: 500;
}

.login-forgot a:hover {
    text-decoration: underline;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #999999;
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4e8ec;
}

.login-divider span {
    padding: 0 14px;
}

.btn-sums-alt {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    line-height: 48px;
    border: none;
    border-radius: 4px;
    background: #28a745;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
}

.btn-sums-alt:hover {
    background: #218838;
    color: #ffffff !important;
    text-decoration: none !important;
}

.login-footer {
    margin-top: 20px;
    padding-bottom: 8px;
    text-align: center;
    font-size: 12px;
    color: #999999;
    line-height: 1.8;
    word-break: break-word;
}

.login-footer a {
    color: #888888 !important;
    text-decoration: none;
    margin: 0 4px;
    display: inline-block;
}

.login-footer a:hover {
    color: #1a5a8a !important;
    text-decoration: underline;
}

.sums-form-wrap,
.sums-form-body {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    position: static;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sums-form-body h2 {
    display: none;
}

.sums-form-body form {
    padding: 0;
    width: 100%;
}

.sums-form-body .submit {
    margin: 0;
    padding: 0;
    width: 100%;
}

.sums-form-body .submit input,
.sums-form-body .submit .btn {
    float: none;
}

.sums-form-body .submit .remember {
    float: none;
    margin-left: 0;
}

body.sums-login-page .wrapper,
body.sums-login-page .login-body {
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none;
    border: none;
    position: static !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    float: none !important;
}

body.sums-login-page .login-body form {
    padding: 0 !important;
}

body.sums-login-page .login-body h2 {
    display: none;
}

body.sums-login-page .login-body .submit {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
}

body.sums-login-page .login-body .submit input,
body.sums-login-page .login-body .submit .btn {
    float: none !important;
}

body.sums-login-page .login-body .submit .remember {
    float: none !important;
    margin-left: 0 !important;
}

body.sums-login-page .modalPopup {
    background-color: rgba(255, 255, 255, 0.75);
}

/* Tablet and below: stack login form above hero */
@media (max-width: 991px) {
    .sums-login-layout {
        flex-direction: column;
        min-height: auto;
    }

    .sums-login-panel {
        order: -1;
        flex: none !important;
        width: 100% !important;
        min-height: auto;
        padding: 28px 20px 32px;
        align-items: stretch;
        justify-content: flex-start;
    }

    .sums-login-hero {
        order: 2;
        flex: none !important;
        width: 100% !important;
        min-height: 240px;
        padding: 28px 24px;
    }

    .login-panel-inner {
        max-width: 100%;
        width: 100%;
    }

    .hero-quote {
        margin-bottom: 0;
        max-width: 100%;
    }

    .hero-quote blockquote {
        font-size: 22px;
    }

    .hero-time {
        font-size: 28px;
    }

    .hero-date {
        font-size: 15px;
    }
}

/* Mobile phones */
@media (max-width: 767px) {
    .sums-login-panel {
        padding: 24px 16px 28px;
    }

    .sums-login-hero {
        min-height: 200px;
        padding: 20px 16px;
    }

    .hero-datetime {
        display: none;
    }

    .hero-quote blockquote {
        font-size: 18px;
        line-height: 1.4;
    }

    .hero-quote cite {
        margin-top: 10px;
        font-size: 13px;
    }

    .login-brand {
        margin-bottom: 16px;
    }

    .login-brand img {
        max-width: 150px;
        max-height: 60px;
    }

    .login-heading {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .login-form-group {
        margin-bottom: 12px;
    }

    .login-footer {
        margin-top: 16px;
        font-size: 11px;
        line-height: 2;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .sums-login-hero {
        min-height: 160px;
    }

    .hero-quote blockquote {
        font-size: 16px;
    }

    .login-brand h4,
    .login-brand h4 span,
    .login-brand #lblSchoolName {
        font-size: 14px;
    }

    .login-forgot {
        font-size: 12px;
    }

    .btn-sums-alt {
        font-size: 13px;
        line-height: 1.3;
        padding: 12px 10px;
        height: auto;
        min-height: 48px;
    }
}

/* Landscape phones */
@media (max-width: 991px) and (orientation: landscape) {
    .sums-login-hero {
        min-height: 140px;
        padding: 16px 20px;
    }

    .hero-quote blockquote {
        font-size: 16px;
    }

    .sums-login-panel {
        padding: 16px 20px 24px;
    }
}
