:root {
    --esj-teal: #12707F;
    --esj-teal-dark: #0C5460;
    --esj-ink: #26343B;
    --esj-muted: #56676F;
    --esj-border: #C3CED4;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--esj-ink);
    background: url('../img/simple-wallpaper.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Preloader */
.se-pre-con {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('../img/Preloader_1.gif') center no-repeat #fff;
}

/* Card */
.esj-card {
    width: 100%;
    max-width: 400px;
    padding: 32px 28px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .28);
}

.esj-card--wide {
    max-width: 480px;
}

.esj-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto 24px;
}

.esj-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.esj-lede {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--esj-muted);
    text-align: center;
}

/* Fields */
.esj-field {
    margin-bottom: 16px;
}

.esj-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.esj-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    /* 16px keeps iOS Safari from zooming in on focus */
    font-size: 16px;
    font-family: inherit;
    color: var(--esj-ink);
    background: #fff;
    border: 1px solid var(--esj-border);
    border-radius: 4px;
}

.esj-input:focus {
    outline: none;
    border-color: var(--esj-teal);
    box-shadow: 0 0 0 3px rgba(18, 112, 127, .18);
}

/* Show-password toggle, driven by Scripts/esj-show-password.js */
.esj-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--esj-muted);
}

.esj-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Submit */
.esj-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--esj-teal);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.esj-btn:hover,
.esj-btn:focus {
    background: var(--esj-teal-dark);
}

.esj-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 112, 127, .35);
}

/* Explanatory sections */
.esj-section {
    margin-bottom: 24px;
    text-wrap: pretty;
}

.esj-section h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.esj-section p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--esj-muted);
}

.esj-section p:last-child {
    margin-bottom: 0;
}

.esj-section .esj-subhead {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--esj-ink);
}

.esj-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--esj-muted);
}

.esj-contact-list a {
    color: var(--esj-teal);
}

.esj-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--esj-muted);
}

.esj-steps li {
    margin-bottom: 4px;
}

.esj-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #E6EBEE;
}

/* Tabs */
.esj-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #E6EBEE;
}

.esj-tab {
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--esj-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.esj-tab:hover {
    color: var(--esj-ink);
}

.esj-tab.is-active {
    color: var(--esj-teal);
    border-bottom-color: var(--esj-teal);
}

.esj-tab:focus {
    outline: 2px solid rgba(18, 112, 127, .4);
    outline-offset: -2px;
}

.esj-tabpanel[hidden] {
    display: none;
}

/* Status messages */
.esj-alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 4px;
}

.esj-alert--success {
    color: #1B5E3F;
    background: #E7F4EC;
    border: 1px solid #B7DFC7;
}

.esj-alert--error {
    color: #8A1F1F;
    background: #FBEAEA;
    border: 1px solid #EFC2C2;
}

.esj-alert a {
    color: inherit;
    font-weight: 600;
}

/* Help + contact */
.esj-help {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E6EBEE;
}

.esj-help > .esj-note:first-child {
    margin-top: 0;
}

.esj-help a,
.esj-contact a {
    color: var(--esj-teal);
}

.esj-note {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--esj-muted);
    text-align: center;
    text-wrap: balance;
}

.esj-contact {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--esj-muted);
    text-align: center;
}

.esj-back {
    margin: 16px 0 0;
    font-size: 13px;
    text-align: center;
}

.esj-back a {
    color: var(--esj-teal);
}

/* Server-side validation */
.validation-summary-errors,
.field-validation-error {
    margin: 0 0 16px;
    font-size: 14px;
    color: #A32020;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary-valid {
    display: none;
}

/* Footer */
.esj-powered {
    margin-top: 20px;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.esj-powered a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.esj-powered img {
    width: 52px;
    height: auto;
}
