body {
    height: auto;
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;     /* center horizontally */
    align-items: center;         /* center vertically */
    min-height: 100vh;           /* full screen height */
    margin: 0;
}

form, .request-access-message {
    width: 100%;
    max-width: 450px;
    margin: auto;
    border-radius: 8px;
}

label {
    display: block;
    margin-top: 1em;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"] {
    margin-top: 1.5em;
    color: white;
    border: none;
    padding: 0.55rem;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

.form-links {
    margin-top: 1em;
    text-align: center;
    font-size: 0.95em;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1em;
}

.link-block {
    white-space: nowrap;
    display: inline-block;
    margin: 0.5em 0.25em;
    width: auto;
}

.separator {
    display: inline-block;
    margin: 0 0.25em;
}

.form-links a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 0.5em;
}

.form-links a:hover {
    text-decoration: underline;
}

.request-access-p {
    font-size: 20px;
    line-height: 30px;
}

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 1rem;
  }

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.input-group input[type="password"] {
    margin-top: 0rem !important;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-top: 0.5rem;
}

.input-group .form-control {
    flex: 1 1 auto;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 0.75em;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.input-group-text:focus {
    border: 1px solid #101010;
    border-left: 3px solid #101010;
}

input[type="text"]::placeholder, input[type="email"]::placeholder, input[type="password"]::placeholder {
    color: #aaa;
}

body {
    background-image: url('../images/logo_transparent.png'); /* Path to your image */
    background-size: contain;
    background-position: left; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-color: #151f2c; /* Set a background color */
    --card-bg-color: #dcdee1;
}

.card, .card-md {
    width: 92%;
    max-width: 450px; /* Set the width to a fixed size */
    margin-left: auto; /* These two lines center the card horizontally */
    margin-right: auto;
    position: relative;
    padding-top: auto;
    padding-bottom: auto;
    background-color: var(--card-bg-color) !important; /* Use the variable for the background color */
}

.card-md .submit-button {
    background-color: #00aad4; /* Primary color for the button */
    color: #ffffff; /* Text color for better readability */
    border-color: #00aad4; /* Border color to match the background */
}
.card-md .submit-button:hover {
    background-color: #008cab; /* A slightly darker shade for the hover state */
    border-color: #008cab;
}

.card-md .form-footer button[type="submit"] {
    margin-top: -12px !important; /* Force override the margin-top */
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-container {
    display: none;
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.login-logo {
    height: auto;
}

.captcha-control {
    width: 100%;
    margin-top: 1.5em;
    display: flex;
    justify-content: start;
}

.h-captcha {
    transform: scale(0.85);
    transform-origin: left;
}

@media (orientation: landscape) and (max-width: 768px) {
    .login-wrapper {
        min-height: auto;
        height: auto;
        justify-content: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .logo-container {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    .login-logo {
        width: 25vw !important;
        height: auto;
    }
}

@media (max-width: 768px) {
    .card, .card-md {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    body {
        background-image: none;
    }

    .login-wrapper {
        justify-content: flex-start;
    }

    .logo-container {
        display: flex;
        justify-content: center;
        margin-top: 10vh;
        margin-bottom: 1rem;
    }

    .login-logo {
        width: 30vw;
    }
}

@media (max-width: 480px) {
    .card, .card-md {
        width: 95%;
    }

    .card input, .card button {
        font-size: 1rem;
    }

    .logo-container {
        margin-top: 7.5vh;
    }

    .login-logo {
        width: 27.5vw;
    }
}