@import url('../fonts/IBM/fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

:root {
    --primary-color: #0792AD;
    --primary-color-rgb: 7, 146, 173;
}

body {
    font-family: 'IBM', sans-serif;
    color: #1E1E1E;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    margin-bottom: 0;
}

ul {
    list-style: none;
}

.btn {
    --btn-radius: 8px;
    --btn-border-width: 1px;
    --btn-border-color: #EBEBEB;
    --btn-border-type: solid;
    --btn-padding-inline: 10px;
    --btn-padding-block: 10px;
    --btn-font-weight: 500;
    --btn-color: #fff;
    --btn-bg-opacity: 1;
    --btn-bg-rgb: #fff;

    position: relative;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(60px);
    box-shadow: inset 4px 4px 8px rgba(255 255 255 / 35%);
    border: var(--btn-border-width) var(--btn-border-type) var(--btn-border-color);
    padding: var(--btn-padding-block) var(--btn-padding-inline);
    border-radius: var(--btn-radius);
    font-weight: var(--btn-font-weight);
    color: var(--btn-color);
    background-color: rgba(var(--btn-bg-rgb), var(--btn-bg-opacity));
    text-transform: capitalize;
    font-size: 16px;
    transition: 0.2s all;
    overflow: hidden;
}

.btn-primary {
    --btn-bg-rgb: var(--primary-color-rgb);
    --btn-hover-border-color: var(--primary-color);
    --btn-hover-bg-color: 255, 255, 255;
    --btn-hover-color: var(--primary-color);
    --btn-active-bg-rgb: var(--primary-color-rgb);
    --btn-active-color: #fff;
    --btn-active-border-color: #EBEBEB;
}

/* Force override for all primary buttons */
/* .btn.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
} */

.btn.btn-primary:hover {
    background-color: rgba(var(--primary-color-rgb), 0.8) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn.btn-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Force override for login button */
#BtnLogin.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

#BtnLogin.btn-primary:hover {
    background-color: rgba(var(--primary-color-rgb), 0.8) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

#BtnLogin.btn-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-outline {
    --btn-color: #545454;
    --btn-hover-border-color: var(--primary-color);
}

.btn-light {
    --btn-bg-rgb: transparent;
    --btn-color: #242424;
    --btn-border-color: transparent;
    --btn-hover-border-color: var(--primary-color);
    --btn-hover-bg-color: var(--primary-color-rgb);
    --btn-hover-color: #fff;
    --btn-active-bg-rgb: var(--primary-color-rgb);
    --btn-active-color: #fff;
    --btn-active-border-color: #EBEBEB;
}

@media (hover:hover) {
    .btn:hover {
        --btn-bg-opacity: 0.7;
        --btn-bg-rgb: var(--btn-hover-bg-color);
        --btn-color: var(--btn-hover-color);
        --btn-border-color: var(--btn-hover-border-color);
    }
}

.btn:active {
    --btn-bg-opacity: 0.7;
    --btn-bg-rgb: var(--btn-active-bg-rgb);
    --btn-color: var(--btn-active-color);
    --btn-border-color: #EBEBEB;
}

.btn.btn-outline:active {
    --btn-bg-opacity: 0.3;
    --btn-bg-rgb: var(--primary-color-rgb)
}

.primary-color {
    color: var(--primary-color);
}

.primary-bg {
    background-color: var(--primary-color);
}

.authentication-container {
    padding: 10px;
    height: 100vh;
    display: flex;
    gap: 20px;
}

.authentication_form {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.form_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.form_body {
    overflow: auto;
    max-width: 500px;
    width: 100%;
    margin-inline: auto;
}

.form_body .greeting-text {
    margin-bottom: 25px;
}

.form_body .greeting_title {
    font-weight: 600;
    font-size: 24px;
    text-align: center;
}

.form_body .greeting_helper {
    color: #959595;
    font-weight: 500;
    text-align: center;
}

.form_body .greeting_helper span {
    color: var(--primary-color);
    font-weight: bold;
}

.form_inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form_actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
}

.check-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.check-container label {
    transition: 0.2s all;
    font-weight: 500;
}

.check-container input[type='checkbox'] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
}

.check-container:has(input[type='checkbox']:checked) label {
    color: var(--primary-color);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-container label {
    font-size: 18px;
    font-weight: 500;
}

.input-container :is(input:not([type='submit']), select, textarea) {
    border-radius: 8px;
    border: 1px solid #EBEBEB;
    padding: 10px;
    transition: 0.2s all;
    outline: unset;
}

.input-container :is(input:not([type='submit']), select, textarea):focus {
    border-color: var(--primary-color);
}

.input-container :is(input:not([type='submit']), select, textarea)::placeholder {
    font-weight: 500;
    color: #878787;
}

.form_footer {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    color: #AAAAAA;
}

.authentication_info {
    position: relative;
    display: none;
    background-color: var(--primary-color);
    flex: 1 1 50%;
    border-radius: 20px;
    padding: 20px;
    flex-direction: column;
    color: #fff;
    justify-content: safe center;
    align-items: center;
    gap: 40px;
    overflow: auto;
}

.authentication_info>* {
    position: relative;
    z-index: 1;
}

.authentication_info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(50% - 50px);
    background-image: url('../imgs/auth-pattern.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.authentication_info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(50% - 50px);
    background-image: url('../imgs/auth-pattern.png');
    background-repeat: no-repeat;
    background-size: cover;
    transform: rotate(180deg);
}

.info_text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info_title {
    font-size: 24px;
    font-weight: 500;
}

.info_card {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    gap: 25px;
    color: #242424;
    max-width: 100%;
}

.QR_container {
    padding: 18px;
    border: 4px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    aspect-ratio: 1/1;
    width: fit-content;
    margin-inline: auto;
}

.QR_container :is(.top, .left, .right, .bottom) {
    position: absolute;
    background: #fff;
}

.QR_container :is(.top, .bottom) {
    width: 70%;
    height: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.QR_container :is(.left, .right) {
    height: 70%;
    width: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.left {
    left: -5px;
}

.right {
    right: -5px;
}

.top {
    top: -5px;
}

.bottom {
    bottom: -5px;
}

.QR_title {
    font-size: 18px;
    font-weight: 500;
}

.QR_helper {
    font-size: 16px;
    font-weight: 400;
    max-width: 370px;
    margin-inline: auto;
}


/* CSS-based QR code representation */
/* .QR_container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: 
        linear-gradient(90deg, #000 25%, transparent 25%) 0 0,
        linear-gradient(90deg, #000 25%, transparent 25%) 0 30px,
        linear-gradient(90deg, #000 25%, transparent 25%) 0 60px,
        linear-gradient(90deg, #000 25%, transparent 25%) 0 90px,
        linear-gradient(0deg, #000 25%, transparent 25%) 0 0,
        linear-gradient(0deg, #000 25%, transparent 25%) 30px 0,
        linear-gradient(0deg, #000 25%, transparent 25%) 60px 0,
        linear-gradient(0deg, #000 25%, transparent 25%) 90px 0;
    background-size: 120px 30px, 120px 30px, 120px 30px, 120px 30px, 30px 120px, 30px 120px, 30px 120px, 30px 120px;
    background-repeat: repeat;
} */

.text-center {
    text-align: center;
}

.input-container .icon-input {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid #EBEBEB;
    border-radius: 8px;
    transition: 0.2s all;
}

.input-container .icon-input input {
    padding: unset;
    border: unset;
    outline: unset;
    border-radius: unset;
    flex: 1;
}

.input-container .icon-input:has(input:focus) {
    border-color: var(--primary-color);
}

.input-container .icon-input .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s all;
}

.input-container .icon-input.start .icon {
    order: 1;
}

.input-container .icon-input.start input {
    order: 2;
}

.input-container .icon-input.end .icon {
    order: 2;
}

.input-container .icon-input.end input {
    order: 1;
}

.input-container .icon-input:has(input[type='password']) .icon .shown {
    display: none;
}

.input-container .icon-input:has(input[type='text']) .icon .hidden {
    display: none;
}

.toggle-password {
    cursor: pointer;
}

.slide-up {
    display: inline-flex;
    transition: 0.2s all;
}

@media (hover:hover) {
    .slide-up:hover {
        transform: translateY(-0.25em);
    }

    .slide-up:active {
        transform: translateY(0em);
    }
}

@media not (hover:hover) {
    .slide-up:active {
        transform: scale(1.04);
    }
}

.sign-with {
    position: relative;
    text-align: center;
}

.sign-with::before {
    content: '';
    position: absolute;
    background-color: rgba(129 129 129 / 20%);
    height: 1px;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.sign-with_text {
    position: relative;
    z-index: 2;
    background-color: #fff;
    padding-inline: 16px;
}

.sign-methods {
    display: flex;
    gap: 12px;
}

.sign-methods>* {
    flex: 1;
}

.sign-up-text {
    text-align: center;
}

.remember_password {
    text-align: center;
    font-weight: 500;
    color: #959595;
}

.color-option {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.color-option.active {
    transform: scale(1.05);
    border-width: 3px;
    border-color: #000;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s all;
    padding: 8px;
    border-radius: 8px;
    position: absolute;
    inset-inline-start: 0;
    background-color: #FFF;
    box-shadow: 5px 5px 25px rgba(0 0 0 / 15%);
    min-width: 200px;
    justify-items: center;
    z-index: 1024;
}

[data-toggle="dropdown"] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-toggle="dropdown"]::after {
    content: '';
    transition: 0.2s all;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 8px;
}

.dropdown:has(.dropdown-menu.active) [data-toggle="dropdown"]::after {
    transform: rotate(180deg);
}

.dropdown-menu.active {
    display: block;
    visibility: visible;
    opacity: 1;
}

.dropdown-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dropdown-link {
    cursor: pointer;
    display: block;
    padding: 4px;
    transition: 0.2s all;
    border-radius: 4px;
}

@media (hover:hover) {
    .dropdown-link:hover {
        background-color: rgba(var(--primary-color-rgb), 0.5);
    }
}

.dropdown-link:active {
    background-color: rgba(var(--primary-color-rgb), 1);
    color: #FFF;
}

.icon-container {
    width: fit-content;
    aspect-ratio: 1/1;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

/* Responsive Design */
@media (min-width: 768px) {
    .authentication_form {
        padding-inline-start: 16px;
    }

    .authentication_info {
        display: flex;
    }

    .form_body .greeting_title {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .form_body .greeting_title {
        font-size: 32px;
    }

    .authentication_form {
        padding-inline-start: 30px;
    }

    .authentication_info {
        padding: 40px;
    }

    .QR_title {
        font-size: 20px;
    }

    .QR_helper {
        font-size: 18px;
    }
}

/* @media (min-width: 1280px) {
    .info_title {
        font-size: 28px;
    }

    .info_helper {
        font-size: 18px;
    }

    .authentication-container {
        padding: 20px;
    }

    .authentication_info {
        padding: 60px;
    }

    .QR_title {
        font-size: 22px;
    }

    .QR_helper {
        font-size: 20px;
    }
} */

@media (min-width: 1920px) {
    .authentication-container {
        padding: 30px;
    }

    .authentication_info {
        gap: 80px;
    }

    .QR_title {
        font-size: 24px;
    }

    .QR_helper {
        font-size: 22px;
    }

    .form_body .greeting_title {
        font-size: 40px;
    }

    .info_title {
        font-size: 40px;
    }
}

/* RTL Support */
[dir="rtl"] .authentication_form {
    padding-inline-start: unset;
    padding-inline-end: 16px;
}


[dir="rtl"] .form_actions {
    flex-direction: row-reverse;
}

/* Custom styles for ASP.NET controls */
.form-control {
    border-radius: 8px;
    border: 1px solid #EBEBEB;
    padding: 10px;
    transition: 0.2s all;
    outline: unset;
}

.form-control:focus {
    border-color: var(--primary-color);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='20px' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 9l6 6l6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}

[dir="rtl"] select.form-control {
    background-position: left 10px center;
    padding-right: 10px;
    padding-left: 40px;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-primary {
    color: #084298;
    background-color: #cff4fc;
    border-color: #b6effb;
}

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

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

/* Captcha styles */
.form-group {
    margin-bottom: 16px;
}

.form-group-default {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.titlelogin {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.txtlogn {
    border-radius: 8px;
    border: 1px solid #EBEBEB;
    padding: 10px;
    transition: 0.2s all;
    outline: unset;
}

.txtlogn:focus {
    border-color: var(--primary-color);
}

/* Button styles for Azure and CAS */
.btn-linkbutton {
    margin-top: 1em;
    width: 100%;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #FFF !important;
    background-color: #e19e14;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    transition: 0.2s all;
}

.btn-linkbutton:hover {
    background-color: #d18a0a;
    color: #FFF !important;
}

/* Language switcher */
.lang {
    width: fit-content;
    margin-left: auto;
    margin-bottom: 1rem;
}

[dir="rtl"] .lang {
    margin-left: unset;
    margin-right: auto;
}

.lang a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: #fff;
    border-radius: 4px;
    padding: 0.25rem;
    color: #2C698D;
    transition: 0.3s all;
    border: 1px solid transparent;
    margin-right: auto;
}

[dir="rtl"] .lang a {
    margin-right: unset;
    margin-left: auto;
}

.lang a svg {
    width: 20px;
    fill: #2C698D;
    transition: 0.3s all;
}

.lang a:hover {
    border-color: #fff;
    background-color: #2C698D;
    color: #fff;
}

.lang a:hover svg {
    fill: #fff;
}

/* Version info */
#m {
    color: #666 !important;
    font-size: 12px;
    margin-top: 8px;
}

/* Hidden elements */
/* .hidden {
    display: none !important;
} */

/* Animation for slide-up elements */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

.btn-soft {
    --btn-bg-opacity: 10%;
    --btn-border-color: transparent;
    background-color: rgba(var(--btn-bg-rgb), 10%);
}

.btn-primary.btn-soft {
    --btn-color: var(--primary-color);
}