:root {
    --institutional-blue: #0072c6;
    --institutional-blue-hover: #0066b2;
    --main-background: #eeeeee;
    --bottom-background: #dedede;
    --main-text: #2c2c2c;
    --secondary-text: #3c3c3c;
    --control-border: #c5c5c5;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-width: 0;
}

body {
    background: #ffffff;
    color: var(--main-text);
    font-family: Arial, Helvetica, sans-serif;
}

.top-strip {
    width: 100%;
    height: 32px;
    background: var(--institutional-blue);
}

.page-content {
    position: relative;
    width: 90%;
    min-height: calc(100vh - 62px);
    margin: 0 auto;
    padding: 4px 24px 46px;
    background: var(--main-background);
}

.school-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.quick-access {
    position: absolute;
    top: 8px;
    right: 12px;
    display: flex;
    width: 305px;
    min-height: 116px;
    padding: 16px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    background: var(--institutional-blue);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.quick-access strong {
    font-size: 17px;
    font-weight: 700;
}

.access-tool {
    max-width: 700px;
    margin: 16px auto 0;
    text-align: center;
}

h1 {
    margin: 0;
    color: var(--institutional-blue);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
}

.intro-text {
    margin-top: 30px;
    color: var(--main-text);
    font-size: 14px;
    line-height: 1.5;
}

.intro-text p {
    margin: 0 auto 18px;
}

.access-form {
    margin-top: 28px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label,
.form-group p {
    display: block;
    margin: 0 0 13px;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

select,
input {
    border: 1px solid var(--control-border);
    border-radius: 0;
    box-shadow: none;
    color: var(--main-text);
    font-family: inherit;
}

select {
    width: 218px;
    height: 37px;
    padding: 0 10px;
    background: #ffffff;
    color: var(--institutional-blue);
    font-size: 16px;
}

.reference-fields {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.reference-fields input {
    height: 37px;
    padding: 0 5px;
    background: #ffffff;
    font-size: 16px;
    text-align: center;
}

#payment-reference {
    width: 72px;
}

#check-digit {
    width: 32px;
}

.show-button,
.platform-button {
    width: 486px;
    max-width: 100%;
    height: 51px;
    border: 0;
    border-radius: 4px;
    background: var(--institutional-blue);
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

.show-button:hover,
.platform-button:hover,
.quick-access:hover {
    background: var(--institutional-blue-hover);
}

.error-message {
    width: min(486px, 100%);
    margin: 14px auto 0;
    color: #9d1c1c;
    font-size: 14px;
    line-height: 1.4;
}

.credentials-result {
    margin-top: 31px;
}

.credential-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.credential-row + .credential-row {
    margin-top: 19px;
}

.credential-row label {
    color: var(--secondary-text);
    font-size: 14px;
    text-align: right;
}

.credential-row input {
    width: 148px;
    height: 37px;
    padding: 0 8px;
    background: #ffffff;
    font-size: 15px;
}

.continuation-text {
    max-width: 590px;
    margin: 31px auto 21px;
    color: var(--main-text);
    font-size: 14px;
    line-height: 1.5;
}

.platform-button {
    display: inline-flex;
    width: 305px;
    height: 54px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

select:focus-visible,
input:focus-visible,
.show-button:focus-visible,
.platform-button:focus-visible,
.quick-access:focus-visible {
    outline: 3px solid #1a1a1a;
    outline-offset: 3px;
}

.bottom-strip {
    width: 100%;
    height: 30px;
    background: var(--bottom-background);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .page-content {
        width: 100%;
        padding: 16px 16px 38px;
    }

    .quick-access {
        position: static;
        width: min(305px, 100%);
        min-height: 0;
        margin: 0 auto 16px;
    }

    .school-logo {
        margin-top: 0;
    }

    .access-tool {
        margin-top: 16px;
    }
}

@media (max-width: 420px) {
    .credential-row {
        flex-direction: column;
        gap: 7px;
    }

    .credential-row label {
        text-align: center;
    }
}
