/* KickBack authentication pages */
:root {
    --kb-navy: #354255;
    --kb-blue: #617c9f;
    --kb-blue-dark: #496482;
    --kb-text: #202938;
    --kb-muted: #748091;
    --kb-border: #dce2e9;
    --kb-page: #f3f5f8;
}

* {
    box-sizing: border-box;
}

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

body {
    background: var(--kb-page);
    color: var(--kb-text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0, rgba(97, 124, 159, .13), transparent 34rem),
        var(--kb-page);
}

.site-header {
    width: 100%;
    min-height: 116px;
    background: var(--kb-navy);
    box-shadow: 0 3px 14px rgba(28, 39, 54, .12);
}

.header-inner {
    width: min(100% - 48px, 940px);
    min-height: 116px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.brand-kickback img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-jccayer {
    gap: 10px;
    color: #fff;
}

.brand-jccayer img {
    display: block;
    width: 42px;
    height: 48px;
    object-fit: contain;
}

.jccayer-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.jccayer-wordmark strong {
    color: #fff;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.8px;
    white-space: nowrap;
}

.jccayer-wordmark strong span {
    font-size: 15px;
    letter-spacing: -.3px;
}

.jccayer-wordmark small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .88);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .25px;
    white-space: nowrap;
}

.header-divider {
    width: 1px;
    height: 48px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, .2);
}

.auth-main {
    width: min(100% - 40px, 940px);
    margin: 0 auto;
    padding: 42px 0 24px;
}

.auth-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 15px;
    box-shadow: 0 16px 45px rgba(39, 54, 73, .09);
}

.auth-heading {
    padding: 31px 34px 27px;
    text-align: center;
    background: linear-gradient(135deg, #667f9f, #536f91);
    color: #fff;
}

.heading-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.auth-heading h1 {
    margin: 0;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.auth-heading p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    line-height: 1.5;
}

.auth-card-body {
    padding: 29px 36px 30px;
}

.password-section,
.otp-section {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 21px;
}

.section-heading h2 {
    margin: 0;
    color: #303b4a;
    font-size: 16px;
    font-weight: 700;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--kb-muted);
    font-size: 12px;
    line-height: 1.4;
}

.section-icon {
    display: inline-flex;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf2f8;
    color: var(--kb-blue-dark);
}

.section-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.otp-icon {
    background: #f0f3f6;
    color: #66778b;
}

.auth-form {
    display: block;
}

.auth-field {
    margin-bottom: 17px;
}

.auth-field > label {
    display: block;
    margin: 0 0 7px;
    color: #303b4a;
    font-size: 12px;
    font-weight: 700;
}

.field-container {
    margin: 0;
}

.field-container .auth-control {
    display: block;
    width: 100%;
    height: 45px;
    padding: 0 13px;
    border: 1px solid var(--kb-border);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--kb-text);
    font: inherit;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field-container .auth-control::placeholder {
    color: #a0a9b5;
}

.field-container .auth-control:focus {
    border-color: var(--kb-blue);
    box-shadow: 0 0 0 3px rgba(97, 124, 159, .14);
}

.field-container.has-error .auth-control {
    border-color: #d9534f;
}

.field-container .help-block {
    margin: 5px 0 0;
    color: #c0392b;
    font-size: 12px;
}

.auth-actions,
.otp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-submit,
.auth-resend {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 7px;
    background: var(--kb-navy);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, box-shadow .18s ease;
}

.auth-submit {
    width: 100%;
}

.auth-submit:hover,
.auth-submit:focus {
    background: var(--kb-blue-dark);
    color: #fff;
    box-shadow: 0 5px 14px rgba(53, 66, 85, .18);
}

.auth-submit-secondary {
    background: var(--kb-blue-dark);
}

.auth-resend {
    flex: 0 0 auto;
    border: 1px solid var(--kb-border);
    background: #fff;
    color: #4c5b6e;
}

.auth-resend:hover,
.auth-resend:focus {
    border-color: var(--kb-blue);
    background: #f5f7fa;
    color: var(--kb-navy);
}

.otp-actions .auth-submit {
    flex: 1 1 auto;
}

.otp-actions .auth-resend {
    min-width: 112px;
}

.auth-methods {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    align-items: stretch;
}

.auth-method-panel {
    min-width: 0;
}

.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #9aa4b1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.auth-divider::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e9edf2;
    content: "";
}

.auth-divider span {
    position: relative;
    padding: 9px 0;
    background: #fff;
}

.auth-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 27px;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
    color: var(--kb-muted);
    font-size: 12px;
}

.auth-enroll-link {
    color: var(--kb-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-enroll-link:hover {
    text-decoration: underline;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 4px 0;
    color: #8792a0;
    font-size: 11px;
}

@media (max-width: 600px) {
    .site-header,
    .header-inner {
        min-height: 88px;
    }

    .header-inner {
        width: calc(100% - 30px);
        gap: 14px;
    }

    .brand-kickback img {
        width: 155px;
    }

    .header-divider {
        height: 38px;
    }

    .brand-jccayer {
        gap: 6px;
    }

    .brand-jccayer img {
        width: 28px;
        height: 34px;
    }

    .jccayer-wordmark strong {
        font-size: 17px;
    }

    .jccayer-wordmark strong span {
        font-size: 10px;
    }

    .jccayer-wordmark small {
        max-width: 125px;
        font-size: 5px;
        white-space: normal;
        line-height: 1.2;
    }

    .auth-main {
        width: calc(100% - 28px);
        padding-top: 25px;
    }

    .auth-heading {
        padding: 26px 18px 22px;
    }

    .auth-heading h1 {
        font-size: 23px;
    }

    .auth-card-body {
        padding: 24px 20px 25px;
    }

    .auth-methods {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-divider {
        min-height: 42px;
        margin: 22px 0;
    }

    .auth-divider::before {
        top: 50%;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1px;
    }

    .auth-divider span {
        padding: 0 13px;
    }

    .page-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 16px;
    }
}

@media (max-width: 360px) {
    .brand-kickback img {
        width: 128px;
    }

    .jccayer-wordmark strong {
        font-size: 15px;
    }

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

    .otp-actions .auth-resend {
        width: 100%;
        min-height: 42px;
    }
}
