/* styles for the login form */

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}
.outer-box {
    display: grid;
    gap: 2vw;
    margin: 10vh auto 0 auto;
    max-width: min(calc(100vw - 10px), calc(920px + 2vw));
    box-sizing: border-box;
    grid-template-columns: 1fr 1fr;
}
.outer-box.single-column {
    grid-template-columns: 1fr;
    max-width: min(calc(100vw - 10px), 420px);
}

.gh-auth-box {
    margin: 0 auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* max-width: min(calc(100vw - 10px), 420px); */
    box-sizing: border-box;
}
.gh-auth-box.title-box {
    align-items: center;
    grid-column: 1 / -1;
}
.gh-auth-box.title-box img {
    max-width: 382px;
    height: auto;
}
.error-message {
    grid-column: 1 / -1;
}

@media (max-height: 460px), (max-width: 460px) {
    .outer-box {
        margin-top: 0;
    }
}
.gh-auth-box .gh-auth-form {
    width: 100%;
    max-width: min(100%, 420px);  
    text-align: start;
}
.gh-auth-form input[type="text"], .gh-auth-form input[type="password"], .gh-auth-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.gh-auth-form label {
    margin-top: 2em;
}

 h2 {
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 0.25em;
}
.gh-auth-box h1 {
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 1em;
}

.gh-auth-form input[type="submit"], button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #046ce4;
    color: #fff;
    cursor: pointer;
    border: none;
}
.gh-auth-form .cancel {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    cursor: pointer;
    border: none;
    background: #ccc;
}
.gh-auth-form .flex {
    display: flex;
    flex-direction: row;
    gap: 1em;
}
.gh-auth-form .cancel:hover {
    background: #999;
}

.gh-auth-form input[type="submit"]:hover {
    background: #0a4eaf;
}

.gh-auth-box > a {
    text-align: center;
}
.gh-auth-box > a {
    color: black;
    margin-top: 1em;
    font-size: 0.8em;
}
.gh-auth-box .error-message {
    min-height: 3em;
}
.img-box {
    grid-column: 1 / -1;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    align-content: center;
    padding: 20px;
    display: flex;

}

#otc-form {
    display: block;
}
.gh-auth-box.disabled {
    opacity: 0.5;
    pointer-events: none;
}
#email-form.disabled, #email-instructions.disabled {
    display: none;
}
#otc-form.disabled {
    display: none;
}
@media (max-width: 767px) {
    .outer-box {
        grid-template-columns: 1fr;
    }
    .gh-auth-box {
        margin-left: auto;
        margin-right: auto;
        width: min(100%, 550px);
    }
}