.modal-window {
    position: fixed;
    background-color: rgba(28, 28, 28, 0.25);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}
.modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.modal-window .authora-container{
    width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    background: white;
    border-radius: 15px;
}
.modal-close {
    color: #aaa;
    line-height: 50px;
    font-size: 80%;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
}
.modal-close:hover {
    color: black;
}
.authora-contant{
    margin-top: 30px;
}

form#authora-login {
    margin-bottom: 0;
}

.authora-modal h2 {
    color: #3C3C3C;
    font-size: 18px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    font-family: inherit !important;
}

.authora-field {
    text-align: right;
    margin: 25px 0;
}

.authora-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.authora-field input {
    border-radius: 10px !important;
    border: 1px solid #d2d2d2 !important;
    width: 100%;
    height: initial !important;
    padding: 10px 0 !important;
    font-family: inherit !important;
    background: #F6F6F6;
    box-sizing: border-box;
    direction: ltr;
    margin-top: 15px;
}

.buttonLogin {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 13px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.buttonLogin:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.authora-modal form button {
    border: none;
    background: #0d6efd;
    width: 100%;
    padding: 5px;
    border-radius: 10px;
    color: #FFF;
    font-weight: bold;
    font-family: inherit !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.3s;
}

.authora-modal form button[disabled] {
    filter: grayscale(1);
    opacity: .4;
}

.authora-modal form button svg path, .authora-modal form button svg rect {
    fill: #FFF;
}

.authora-modal form button svg {
    width: 20px;
    display: none;
    height: 20px;
}

.authora-modal form.loading button svg {
    display: inline;
}

p.authora-message {
    text-align: right;
    padding: 10px;
    border-radius: 10px;
    color: #FF6363;
    background: lab(63.3 60.41 32.99 / .1);
    display: none;
    align-items: center;
    gap: 10px;
}

p.authora-message.active {
    display: flex;
}

.authora-success {
    background: #ecffec;
    color: green;
    padding: 5px;
    border-radius: 10px;
}


.authora-codes {
    display: flex;
    gap: 5px;
    margin: 25px 0px;
    direction: ltr;
    justify-content: space-evenly;
}

#authora-verify .authora-codes input {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #d2d2d2;
    text-align: center;
    color: #333;
    font-size: 36px;
    font-weight: bold;
    direction: ltr;
}

.authora-no-receive {
    display: flex;
    justify-content: space-between;
}

.authora-no-receive p {
  margin-top: 0px;
}

a.authora-resend, a.authora-resend:hover {
    color: #333;
    font-weight: 500;
    opacity: .4;
    text-decoration: none;
}

a.authora-resend.active{
    opacity: 1;
    font-weight: bold;;
}

span.authora-countdown {
    color: #333;
    font-weight: 500;
}

.authora-buttons {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 10px;
}

form#authora-verify {
    margin-bottom: 0;
}

button.authora-btn.authora-btn-secondary {
    border: 1px solid #d2d2d2;
    background: none;
    color: #333;
}

.authora-modal form#authora-verify {
    display: none;
}

.authora-modal.verify form#authora-verify {
    display: block;
}

.authora-modal.verify form#authora-login {
    display: none;
}

@media screen and (max-width: 600px){
    button.authora-close {
        right: 5px;
    }
}

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

/* RTL Support for English Language */
html[lang="en-US"] .authora-modal,
html[lang="en-US"] .authora-container,
html[lang="en-US"] .authora-field,
html[lang="en-US"] .authora-buttons,
html[lang="en-US"] .authora-no-receive,
html[lang="en-US"] .authora-codes {
    direction: ltr;
    text-align: left;
}

html[lang="en-US"] .authora-modal h2,
html[lang="en-US"] .authora-modal p,
html[lang="en-US"] .authora-field label,
html[lang="en-US"] .authora-no-receive p {
    text-align: left;
}

html[lang="en-US"] .authora-codes input {
    margin: 0 0 0 5px;
}

html[lang="en-US"] .authora-codes input:first-child {
    margin-left: 0;
}

html[lang="en-US"] .authora-buttons {
    flex-direction: row;
}

html[lang="en-US"] .authora-buttons button {
    margin: 0 0 0 10px;
}

html[lang="en-US"] .authora-buttons button:first-child {
    margin-left: 0;
}

html[lang="en-US"] .authora-no-receive div {
    flex-direction: row;
}

html[lang="en-US"] .authora-no-receive a {
    margin: 0 0 0 10px;
}

/* Embedded Login Form Styles */
.authora-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2em;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.authora-login-form .modal-window {
    position: static; /* Override fixed positioning */
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background-color: transparent; /* Remove the overlay background */
    box-shadow: none;
}

.authora-login-form .authora-container {
    position: static; /* Override absolute positioning */
    width: 100%;
    transform: none;
    padding: 0;
}

.authora-login-form .modal-close {
    display: none;
}

.authora-login-form .authora-modal {
    padding: 0;
}

.authora-login-form .authora-modal h2 {
    margin-top: 0;
}

/* RTL Support for Embedded Form */
html[lang="en-US"] .authora-login-form {
    direction: ltr;
    text-align: left;
}

