@font-face {
    font-family: "Metropolis";
    src: url("../fonts/Metropolis-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("../fonts/Metropolis-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.login-pf body {
    background: #fff;
    font-family: "Metropolis", Arial, sans-serif;
}

/* Form controls may have their own inherited font rules. */
.login-pf input,
.login-pf button,
.login-pf select,
.login-pf textarea,
.login-pf .btn {
    font-family: "Metropolis", Arial, sans-serif;
}

/* Visually replace the realm name with the logo.
   The original text remains available to screen readers. */
#kc-header-wrapper {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    min-height: 84px;
    margin: 0 auto 24px;
    padding: 18px 0 18px 98px;

    background: url("../img/logo.svg")
        left center / 80px auto no-repeat;

    color: #141F46;
    font-family: "Metropolis", Arial, sans-serif;
    font-size: 0;
    line-height: 0;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

#kc-header-wrapper::before {
    content: "OPEN READINGS 2027";
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    background: none;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

#kc-header-wrapper::after {
    content: "70 YEARS OF STUDENT RESEARCH";
    display: block;
    margin-top: 5px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

/* Shared form card across login, registration and password reset. */
.login-pf-page .card-pf {
    border-top: 4px solid #2287f2;
    border-radius: 0;
    color: #222;
    font-family: "Metropolis", Arial, sans-serif;
    font-size: 14px;
}

/* Page headings. */
.login-pf #kc-page-title {
    color: #141f46;
    font-family: "Metropolis", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

/* Labels, help text, validation messages and secondary links. */
.login-pf .card-pf label,
.login-pf .card-pf .control-label,
.login-pf .card-pf .help-block,
.login-pf .card-pf .alert,
.login-pf .login-pf-settings,
.login-pf #kc-registration,
.login-pf #kc-info-wrapper {
    font-size: 14px;
    line-height: 1.5;
}

/* Form fields, including registration fields. */
.login-pf input,
.login-pf select,
.login-pf textarea,
.login-pf button,
.login-pf .btn {
    font-family: "Metropolis", Arial, sans-serif;
    font-size: 14px;
}

.login-pf .form-control {
    border-radius: 0;
    color: #222;
}

.login-pf .form-control:focus {
    border-color: #2287f2;
    box-shadow: 0 0 0 2px rgb(34 135 242 / 15%);
}

/* Shared primary buttons: sign in, register, reset, verify, etc. */
.login-pf .card-pf .btn-primary {
    background: #2287f2;
    background-image: none;
    border: 1px solid #2287f2;
    border-radius: 0;
    color: #fff;
    font-weight: 700;
    text-shadow: none;
}

.login-pf .card-pf .btn-primary:hover,
.login-pf .card-pf .btn-primary:focus {
    background: #176dcc;
    border-color: #176dcc;
    color: #fff;
}

.login-pf .card-pf .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Links throughout authentication pages. */
.login-pf a {
    color: #2287f2;
}

.login-pf a:hover,
.login-pf a:focus {
    color: #176dcc;
    text-decoration: underline;
}

.login-pf .card-pf .btn-primary,
.login-pf .card-pf .btn-default,
.login-pf .card-pf input[type="submit"] {
    background: #2287f2;
    background-image: none;
    border: 1px solid #2287f2;
    color: #fff;
    font-weight: 700;
    text-shadow: none;
}

.login-pf .card-pf .btn-primary:hover,
.login-pf .card-pf .btn-default:hover,
.login-pf .card-pf input[type="submit"]:hover {
    background: #176dcc;
    border-color: #176dcc;
    color: #fff;
}

#kc-registration {
	color: #222;
}

/* Stack the registration title and required-fields notice. */
.login-pf-header .row:has(.subtitle) {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.login-pf-header .row:has(.subtitle) > div {
    float: none;
    width: 100%;
    padding: 0;
    order: 2;
    text-align: center;
}

.login-pf-header .row:has(.subtitle) > div:has(#kc-page-title) {
    order: 1;
}

.login-pf-header .row:has(.subtitle) #kc-page-title {
    margin-top: 0;
    margin-bottom: 8px;
}

.login-pf-header .subtitle {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
}
.subtitle {
	padding: 0;
	margin-top: 0;
}

.col-md-10 {
	width: 100%;
}

/* Keep space around the card on every screen size. */
.login-pf .login-pf-page {
    padding-left: 16px;
    padding-right: 16px;
}

/* Preserve the card instead of switching to a flat mobile layout. */
.login-pf .login-pf-page .card-pf {
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 24px;
    padding: 32px 24px;

    background: #fff;
    border: none;
    border-top: 4px solid #2287f2;
    border-radius: 0;
    box-shadow: 0 3px 14px rgb(20 31 70 / 16%);
}

/* Keep the registration footer inside the card. */
.login-pf #kc-info {
    margin: 24px 0 0;
}

.login-pf #kc-info-wrapper {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    text-align: center;
}

.login-pf #kc-registration {
    margin: 0;
    padding: 0;
}

.kc-social-gray {
	color: #222;
}

/* Clickable Open Readings logo and text */
#kc-header-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

#kc-header-link:hover,
#kc-header-link:focus {
    color: inherit;
    text-decoration: none;
}

#kc-header-link:focus-visible {
    outline: 2px solid #2287f2;
    outline-offset: 4px;
}

#kc-header-link #kc-header-wrapper {
    margin-left: 0;
    margin-right: 0;
}
