/** Fonts **/
@import url('/css/custom-font-80b2fb9aff93772118faf5cf01873d57.css');

/* Defaults */
:root {
    /*--keycloak-logo-url: url('../img/keycloak-logo-text.svg');*/
    /*--keycloak-bg-logo-url: url("../img/keycloak-bg-darken.svg");*/
    /*--keycloak-logo-height: 63px;*/
    /*--keycloak-logo-width: 300px;*/
    /*--keycloak-card-top-color: var(--pf-v5-global--palette--blue-400);*/
    /*--pf-v5-c-button--m-primary--BackgroundColor: #1a1e50;*/
    /*--pf-v5-global--primary-color--100:  #1a1e50;*/
    /*--pf-v5-c-form-control--focus--after--BorderBottomColor: #1a1e50;*/
}

html {
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-size: 14px;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    color: #575757;
    font-family: "TASA Explorer", sans-serif;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE und Edge (Legacy) */
    scrollbar-width: none; /* Firefox */
}

*,
::after,
::before,
::backdrop,
::file-selector-button {
    box-sizing: border-box; /* 1 */
    margin: 0; /* 2 */
    padding: 0; /* 2 */
    border: 0 solid; /* 3 */
}

a,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #13224B;
}

h4 {
    font-style: normal;
    font-weight: 600;
    line-height: 21px;
}

.small-muted {
    color: #495064;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 17.5px;
}


.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

header {
    display: block;
}

.topbar {
    height: 64px;
    width: 1440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #fff;
    border-bottom: 1px solid #E0E3EB;
}

footer {
    width: 100%;
    background-color: #CBD5E1;
    border-top: 1px solid #E0E3EB;
}

.footer {
    height: 56px;
    width: 1440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 48px 0 48px;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.login-form-container {
    background-color: #FFF;
    width: 544px;
    padding: 24px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid #E0E3EB;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-header {
    margin-top: 12px;
}

.icon-div {
    background-color: #F8F9FB;
    border-radius: 8px;
    padding: 12px;
    font-size: 24px;
}

.login-page input {
    border-radius: 6px;
    border: 1px solid #C9CEDA;
    background-color: #FFF !important;
}

.login-page input:hover {
    border-color: #94A3B8;
}

.login-page input:focus {
    border-color: #13224B;
    outline: none;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #383E50;
    line-height: 21px;
}

button {
    color: #FFF;
    background-color: #13224B;
    border: 1px solid #033882;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 21px;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    cursor: pointer;
}

/* Button Styles */
button.primary {
    /*width: 100%;*/
    padding: 10px;
    margin-top: 15px;
    cursor: pointer;
}

button.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.primary:hover:not(:disabled) {
    background-color: #022a5c;
    border-color: #022a5c;
}

button.primary-outline {
    /*width: 100%;*/
    background: none;
    color: #13224B;
}

button.primary-outline:not(:disabled):hover {
    /*width: 100%;*/
    background-color: #13224B;
    color: #FFF;
}

.otp-button {
    margin-top: 16px;
    width: auto;
    white-space: nowrap;
    align-self: flex-end;
}

.link-button {
    color: #033882;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #033882;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.link-button:hover {
    background-color: #033882;
    color: white;
}

.oder-separator {
    display: flex;
    align-items: center;
    text-align: center;
    gap: .5em;
    width: 100%;
    margin-top: 32px;
}

.oder-separator:after, .oder-separator:before {
    content: "";
    flex: 1;
    border-bottom: 1px solid #eaeaea;
}


.logo {
    width: 140px;
}

.content {
    flex: 1;
    background-color: #F1F5F9;
    padding-top: 130px;
    padding-bottom: 48px;
    width: 100%;
}

.app-container {
    width: 1440px;
    margin: 0 auto;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75%;
}

.form.otp-only-form {
    width: 100%;
}

#otp-section{
    display: flex;
    flex-direction: column;
}

.form h2 {
    margin-bottom: 20px;
}

.form p {
    width: 100%;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 5px;
}

.otp-message {
    margin: 16px 0;
}

.resend-text{
    align-self: center;
    font-size: 0.85rem;
}

.resend-text a{
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration-line: underline;
}

.alt-link{
    font-size: 1.125rem;
    font-weight: 600;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
}

.otp-only-form .otp-inputs {
    width: 75%;
    align-self: center;
}

.form .otp-inputs input.otp-digit {
    width: 100%;
    flex: 1;
    aspect-ratio: 1 / 1;
    text-align: center;
    font-size: 24px;
    padding: 0;
    margin-top: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.form .otp-inputs input.otp-digit:focus {
    border-color: #1a1e50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 30, 80, 0.15);
}

#resend-otp-link.disabled {
    color: #94A3B8;
    pointer-events: none;
}

.otp-cooldown-timer {
    color: #94A3B8;
}

/* Alert Styles */
.alert {
    display: flex;
    padding: 16px;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 544px;
    border-radius: 12px;
    margin: -48px auto 24px auto;
}

.alert-error {
    color: #DC2626;
    border: 1px solid #FECACA;
    background: #FEF2F2;
}

.alert-success {
    background: #f6ffed;
    border: 1px #b7eb8f solid;
}

/* Password Validation Styles */
.validation-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 0.9em;
}

.validation-item {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-item.valid {
    color: #28a745;
}

.validation-item.invalid {
    color: #dc3545;
}

.validation-icon {
    font-weight: bold;
    width: 16px;
}

.password-requirements {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    display: none;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9em;
}

.password-requirements.active {
    display: block;
}

.password-requirements strong {
    display: block;
    margin-bottom: 10px;
}

.password-strength-indicator {
    height: 4px;
    border-radius: 2px;
    margin: 10px 0;
    background-color: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-bar.weak {
    width: 25%;
    background-color: #dc3545;
}

.password-strength-bar.fair {
    width: 50%;
    background-color: #ffc107;
}

.password-strength-bar.good {
    width: 75%;
    background-color: #17a2b8;
}

.password-strength-bar.strong {
    width: 100%;
    background-color: #28a745;
}

.password-strength-text {
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: bold;
}

.confirm-match {
    font-size: 0.85em;
    margin-top: 5px;
}

.confirm-match.match {
    color: #28a745;
}

.confirm-match.mismatch {
    color: #dc3545;
}

/* Spinner */
.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}