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

body {
    background: #ffffff;
}

.ds-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
    align-items: stretch;
    overflow: hidden;
    background: #ffffff;
    color: #12213f;
}

.ds-login-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 72px 8vw;
    overflow: hidden;
    color: #10213f;
    text-align: left;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .9) 36%, rgba(236, 248, 255, .58) 62%, rgba(236, 248, 255, .22) 100%),
        url("ds-login-hero-20260616.png") center center / cover no-repeat;
}

.ds-login-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .38));
    pointer-events: none;
}

.ds-login-hero:after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(0, 126, 160, .16);
    border-radius: 50%;
    pointer-events: none;
}

.ds-login-hero canvas {
    opacity: .24;
}

.ds-login-hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
}

.ds-login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.ds-login-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    color: #0a86a8;
    background: #ffffff;
    border: 1px solid rgba(26, 69, 117, .08);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(20, 70, 115, .16);
}

.ds-login-brand-mark i {
    font-size: 32px;
}

.ds-login-brand h1 {
    margin: 0;
    color: #10213f;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

.ds-login-hero-copy {
    max-width: 520px;
    margin: 0;
    color: #526179;
    font-size: 18px;
    line-height: 1.75;
}

.ds-login-card {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0 7vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    z-index: 2;
}

.ds-login-card-header {
    margin-bottom: 34px;
}

.ds-login-card-header h2 {
    margin: 0 0 12px;
    color: #0f1d3a;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.ds-login-card-header p {
    margin: 0;
    color: #6a7487;
    font-size: 15px;
    line-height: 1.6;
}

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

.ds-login-label {
    display: block;
    margin-bottom: 9px;
    color: #1b2945;
    font-size: 15px;
    font-weight: 600;
}

.ds-login-field-icon {
    position: absolute;
    left: 18px;
    top: 46px;
    color: #8793a6;
    font-size: 17px;
    line-height: 1;
    pointer-events: none;
}

.ds-login-input.form-control {
    min-height: 56px;
    padding: 14px 18px 14px 50px;
    color: #152540;
    background: #ffffff;
    border: 1px solid #cbd5e3;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(17, 45, 78, .04);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.ds-login-input.form-control::placeholder {
    color: #9aa5b5;
}

.ds-login-input.form-control:focus {
    border-color: #0b8faf;
    box-shadow: 0 0 0 3px rgba(11, 143, 175, .14);
}

.ds-login-field span[style*="Red"],
.ds-login-field .field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.ds-login-recaptcha {
    margin-bottom: 24px;
}

.ds-login-submit.btn {
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    background: linear-gradient(135deg, #066cc4, #0796b5);
    box-shadow: 0 16px 30px rgba(0, 105, 176, .24);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.ds-login-submit.btn:hover,
.ds-login-submit.btn:focus {
    color: #ffffff;
    filter: brightness(1.03);
    box-shadow: 0 20px 36px rgba(0, 105, 176, .28);
    transform: translateY(-1px);
}

.ds-login-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

.ds-login-links .link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b7f55;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.ds-login-links .link:last-child {
    color: #086fc6;
}

.ds-login-links .link:hover,
.ds-login-links .link:focus {
    color: #064b38;
    text-decoration: underline;
}

.ds-login-links .link:last-child:hover,
.ds-login-links .link:last-child:focus {
    color: #074b86;
}

.ds-login-footer {
    width: 100%;
    max-width: none;
    margin-top: 48px;
    padding: 0;
    color: #7b8698;
    font-size: 13px;
}

.ds-login-page .modal-content {
    border-radius: 8px;
}

.ds-auth-page {
    overflow: visible;
}

.ds-auth-page .ds-login-hero {
    min-height: 100vh;
}

.ds-auth-card {
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 32px;
}

.ds-auth-card-wide {
    padding-top: 38px;
    padding-bottom: 28px;
}

.ds-auth-logo {
    margin-bottom: 16px;
}

.ds-auth-logo img {
    width: auto;
    max-width: 180px;
    height: 54px !important;
}

.ds-auth-section {
    width: 100%;
    border-top: 1px solid #e5ebf3;
}

.ds-auth-section-header {
    padding: 22px 0 8px;
}

.ds-auth-section-header h3 {
    margin: 0;
    color: #162645;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
}

.ds-auth-section-body {
    padding-top: 12px;
}

.ds-auth-profile {
    align-items: center;
    padding: 18px;
    background: #f6f9fc;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
}

.ds-auth-profile .card-title {
    margin-bottom: 6px;
    color: #162645;
    font-size: 18px;
    font-weight: 700;
}

.ds-auth-profile .card-subtitle {
    margin-bottom: 6px;
    font-size: 14px;
}

.ds-auth-form-row {
    align-items: center;
}

.ds-auth-label {
    color: #1b2945;
    font-size: 15px;
    font-weight: 600;
}

.ds-auth-input.form-control {
    min-height: 52px;
    padding: 13px 16px;
    color: #152540;
    background: #ffffff;
    border: 1px solid #cbd5e3;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(17, 45, 78, .04);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.ds-auth-input.form-control::placeholder {
    color: #9aa5b5;
}

.ds-auth-input.form-control:focus {
    border-color: #0b8faf;
    box-shadow: 0 0 0 3px rgba(11, 143, 175, .14);
}

.ds-auth-help {
    margin-top: 8px;
    line-height: 1.6;
}

.ds-auth-code-group {
    align-items: stretch;
}

.ds-auth-code-group .ds-auth-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.ds-auth-code-box.input-group-text {
    min-height: 52px;
    padding: 0 12px;
    background: #f8fbfe;
    border-color: #cbd5e3;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.ds-auth-inline-link {
    color: #086fc6;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.ds-auth-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ds-auth-submit.btn {
    min-width: 180px;
    padding-right: 22px;
    padding-left: 22px;
}

.ds-auth-secondary.btn {
    min-height: 52px;
    padding: 14px 22px;
    color: #24405f;
    font-weight: 700;
    background: #f2f6fb;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
}

.ds-auth-secondary.btn:hover,
.ds-auth-secondary.btn:focus {
    color: #10213f;
    background: #e8f0f8;
}

.ds-auth-result.alert {
    border: 0;
    border-radius: 8px;
    background: #ecf7fb;
    color: #21445d;
}

@media (max-width: 1199.98px) {
    .ds-login-page {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
    }

    .ds-login-hero {
        padding: 56px 5vw;
    }

}

@media (max-width: 991.98px) {
    .ds-login-page {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .ds-login-hero {
        min-height: auto;
        padding: 40px 28px 34px;
    }

    .ds-auth-page .ds-login-hero {
        min-height: auto;
    }

    .ds-login-brand h1 {
        font-size: 34px;
    }

    .ds-login-hero-copy {
        max-width: 460px;
        font-size: 16px;
    }

    .ds-login-card {
        min-height: auto;
        padding: 42px 28px 28px;
    }

    .ds-auth-card {
        padding-top: 34px;
    }
}

@media (max-width: 575.98px) {
    .ds-login-hero {
        padding: 30px 20px 24px;
    }

    .ds-login-brand {
        align-items: flex-start;
        gap: 14px;
    }

    .ds-login-brand-mark {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 16px;
    }

    .ds-login-brand-mark i {
        font-size: 25px;
    }

    .ds-login-brand h1 {
        font-size: 28px;
    }

    .ds-login-card {
        padding: 34px 20px 24px;
    }

    .ds-login-card-header h2 {
        font-size: 30px;
    }

    .ds-login-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .ds-auth-profile {
        align-items: flex-start;
        flex-direction: column;
    }

    .ds-auth-profile .media-body {
        padding-left: 0 !important;
        padding-top: 16px;
    }

    .ds-auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ds-auth-submit.btn,
    .ds-auth-secondary.btn {
        width: 100%;
    }

    .ds-auth-code-group {
        display: block;
    }

    .ds-auth-code-group .ds-auth-input,
    .ds-auth-code-box.input-group-text {
        width: 100%;
        border-radius: 8px;
    }

    .ds-auth-code-box.input-group-text {
        justify-content: flex-start;
        margin-top: 10px;
    }
}
