* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', 'Roboto', sans-serif;
}

body {
    color: #ffffff;
    background-color: #505050;
    background-image: url(../images/backdrop-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0 0;
    gap: 2rem;
}

.form-container {
    display: flex;
    max-width: 80%;
    align-items: center;
    justify-content: center;
    border-radius: 0.8em;
    box-shadow: 0px 0px 15px 0px rgb(21, 21, 21);
    overflow: visible;
    margin: auto 0;
}

.form-inner-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    position: relative;
    /* padding: 5rem auto; */
    padding: 0 3rem;
}

.form-title-logo {
    background-image: url(../images/apifant-logo.png);
    background-position: center;
    width: 15em;
    height: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    max-width: 18em;
    margin: 1.5rem auto;
}
.form-title {
    text-align: center;
    font-family: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
        sans-serif;
    overflow: hidden;
    font-weight: bold;
    font-size: 2.4rem;
    line-height: 1.3;
    max-height: calc(1.3em * 3);
}
.form-title-subtext {
    margin: 1.5rem auto 1rem;
    text-align: center;
    font-size: 1.3em;
}


.login-form {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 30em;
    height: 100%;
    background-color: #ffffff;
    color:#000000;
    border-radius: 0.8em;
}
.login-landing-img {
    /* background-image: url(../images/background.png); */
    background-size: cover;
    background-position: right center;
    overflow: hidden;
}

.reset-form-container {
    max-width: 26em;
    display: flex;
    align-items: center;
}
.reset-form-img {
    /* background-image: url(../images/new-password.jpg); */
    height: 40em;
    overflow: hidden;
    width: 100%;
    flex: 1;
    background-size: cover;
}
.reset-form-logo {
    background-image: url(../images/reset-password.svg);
    height: 100px;
    width: 150px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0 auto;
}
.reset-form-title {
    font-size: 1.8rem;
    margin-top: 1.8rem;
    color: #000000;
    text-align: center;
}
.reset-form-description {
    margin: 1rem 0;
    text-align: center;
    color: #000000;
}

.oauth-form-title-logo {
    background-image: url(../images/apifant-logo.png);
    background-position: center;
    width: 8rem;
    height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    max-width: 18em;
    margin: 1.5rem 0;
}
.oauth-form-title {
    margin-bottom: 2rem;
}
.oauth-grant-container {
    background-color: #ffffff;
    color:#000000;
    padding: 0 2rem 2rem;
    max-width: 800px;
}
.oauth-privacy-link {
    text-decoration: none;
    color: #ec6608;
    font-weight: 800;
}
.oauth-privacy-link:hover {
    color: #c35608;
}

.verify-email-form {
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    padding: 2rem 1rem 2rem;
    max-width: 60rem;
}


::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #a3a3a3;
}
::-moz-placeholder {
    /* Firefox 19+ */
    color: #a3a3a3;
}
:-ms-input-placeholder {
    /* IE 10+ */
    color: #a3a3a3;
}
:-moz-placeholder {
    /* Firefox 18- */
    color: #a3a3a3;
}
input[type="password"]::-ms-reveal {
  display: none;
}

.footer {
    background-color: #3e3e3e;
    padding: 0.8rem;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    list-style: none;
    gap: 20px;
    color: white;
}

.footer-link a {
    text-decoration: none;
    color: #ffffff;
}

.footer-link a:hover, 
.footer-link a:active {
    color: #ccc;
}

.message-container {
    background-color: #eaffe6;
    width: 100%;
    text-align: center;
    padding: 0.5em 1em;
    color: #72d477;
    border-radius: 0.4em;
    margin: 1rem 0 2rem;
    display: none;
}
.message-container.error {
    background-color: #fcefef;
    color: var(--bs-form-invalid-color);
}
.message-container.warning {
    background-color: #fff3e6;
    color: #db916b;
}
.message-text {
    display: none;
}

.instruction {
    font-size: 0.9em;
    color: #000000;
    margin: 1rem 3rem;
    text-align: center;
}

.instruction-link {
    color: #000000;
}

/* 2FA / OTP Pages */
.totp-steps {
    list-style: none;
    counter-reset: totp-step;
    padding-left: 0;
    margin: 0 0 1.5rem;
}
.totp-steps > li {
    counter-increment: totp-step;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}
.totp-steps > li::before {
    content: counter(totp-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #ec6608;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.totp-steps p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.totp-supported-apps {
    padding-left: 1rem;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0;
}
.totp-secret-key {
    font-family: monospace;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    word-break: break-all;
}
.totp-config-details {
    font-size: 0.85rem;
    color: #555;
    padding-left: 1rem;
}
.totp-qr-code {
    text-align: center;
    margin: 0.5rem 0;
}
.totp-qr-code img {
    max-width: 200px;
    height: auto;
    border-radius: 0.4rem;
}
.totp-link {
    color: #ec6608;
    font-size: 0.85rem;
    text-decoration: none;
}
.totp-link:hover {
    color: #c35608;
    text-decoration: underline;
}
.totp-step-hint {
    font-size: 0.85rem;
    color: #777;
}

.otp-credential-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.otp-credential-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: border-color 0.15s;
}
.otp-credential-item:has(input:checked) {
    border-color: #ec6608;
    background-color: #fff8f3;
}
.otp-credential-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0;
}
.otp-credential-item i {
    color: #ec6608;
    font-size: 1.1rem;
}

@media screen and (max-width: 900px) {
    .login-landing-img,
    .reset-form-img {
        display: none;
    }

    .form-container {
        max-width: 30em;
    }

    /* .form-inner-content {
        padding: 3em 1em;
    } */
}