/* ReCaptcha */
/* .grecaptcha-badge {
    visibility: hidden !important;
    display: none !important;
} */

.ea_login_wrapper {
    display: block;
    position: relative;
    max-width: 432px;
    background-color: var(--color-card);
    box-shadow: var(--card-shadow);
    border-radius: var(--card-radius);
    border: none;
    padding: 32px 40px;
    overflow: hidden;
    min-height: 340px;
}

.ea_login_loader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none; /* flex */
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.ea_login_wrapper.ea_login_loading .ea_login_loader {
    display: flex;
}

.ea_login_loader::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    opacity: 0.8;
    z-index: 10;
}

/* SPINNER */
.ea_login_loader_spinner {
    z-index: 11;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    position: relative;
    animation: ea_login_loader_rotate 1s linear infinite;
}
.ea_login_loader_spinner::before , .ea_login_loader_spinner::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid var(--color-border);
    animation: ea_login_loader_clipFix 2s linear infinite;
}
.ea_login_loader_spinner::after{
    transform: rotate3d(90, 90, 0, 180deg );
    border-color: var(--color-accent);
}

@keyframes ea_login_loader_rotate {
    0%   {transform: rotate(0deg)}
    100%   {transform: rotate(360deg)}
}

@keyframes ea_login_loader_clipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    75%, 100%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
}

/* LOGIN TITLE */
.ea_login_header_content {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.25em;
    padding-bottom: 1.25em;
}

#ea_login_title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.4em;
}

.ea_login_subtitle {
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.8;
    margin: 0;
    line-height: 1.8;
}

/* LOGIN FORM */
.ea_login_form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.ea_login_message {
    font-size: 13px;
    line-height: 1.5em;
    border-right: 4px solid var(--color-red);
    background-color: var(--color-background);
    border-radius: 6px;
    padding: 8px 12px;;
    margin-bottom: 0.5em;
}

.ea_login_field {
    display: block;
    position: relative;
}

.ea_login_field_input_wrapper {
    display: block;
    position: relative;
    width: 100%;
}

.ea_login_label {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    left: auto;
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Floating Label Effect */
.ea_floating_field {
    position: relative;
}

.ea_floating_label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-card);
    padding: 0 4px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.ea_floating_field .ea_login_field_input:focus + .ea_floating_label,
.ea_floating_field .ea_login_field_input:not(:placeholder-shown) + .ea_floating_label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--color-accent);
}

/* Ensure proper z-index for floating labels */
.ea_floating_field .ea_login_field_input_wrapper {
    position: relative;
}

.ea_floating_field .ea_floating_label {
    z-index: 2;
}

.ea_floating_field .ea_login_field_input:focus + .ea_floating_label .ea_login_field_icon svg path,
.ea_floating_field .ea_login_field_input:not(:placeholder-shown) + .ea_floating_label .ea_login_field_icon svg path {
    stroke: var(--color-accent);
}

.ea_floating_field.ea_floating_active .ea_floating_label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--color-accent);
}

.ea_floating_field.ea_floating_active .ea_floating_label .ea_login_field_icon svg path {
    stroke: var(--color-accent);
}

.ea_login_field_icon svg {
    width: 18px;
    height: 18px;
}
.ea_login_field_icon svg path {
    stroke: var(--color-text);
}

.ea_login_label_text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25em;
    color: var(--color-placeholder);
}
.ea_floating_field.ea_floating_active .ea_login_label_text {
    color: var(--color-text) !important;
}

.ea_login_field_input {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1em;
    border-radius: 6px;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    height: 50px;
    padding: 12px 12px 10px 12px;
    width: 100%;
    direction: ltr;
    text-align: right;
}
.ea_login_field_input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--color-accent);
}

#ea_exists_phone {
    letter-spacing: 2px;
}
#ea_exists_phone::placeholder {
    letter-spacing: 1px;
}

.ea_login_verification_field {
    display: block;
    position: relative;
}

.ea_login_verification_field_inner {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

#ea_exists_verification {
    font-family: sans-serif;
}

#ea_exists_verification_refresh {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    opacity: 0.8;
    cursor: pointer;
}

#ea_exists_verification_refresh svg {
    width: 22px;
    height: 22px;
}
#ea_exists_verification_refresh svg path {
    stroke: var(--color-text);
}

#ea_exists_verification_refresh:hover {
    opacity: 1;
}
#ea_exists_verification_refresh:hover svg path {
    stroke: var(--color-accent);
}

#ea_exists_verification_wrapper {
    flex-grow: 1;
    max-width: 100px;
    min-width: 100px;
    width: 100px;
    position: relative;
    font-display: inline-block;
}
#ea_exists_verification_wrapper img {
    height: 54px;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

#ea_exists_verification_wrapper .ea_login_loader {
    display: none;
}
#ea_exists_verification_wrapper.ea_loading .ea_login_loader {
    display: flex;
}

#ea_exists_verification_wrapper .ea_login_loader {
    display: none;
}
#ea_exists_verification_wrapper .ea_login_loader_spinner {
    width: 36px;
    height: 36px;
}
#ea_exists_verification_wrapper .ea_login_loader_spinner::after,
#ea_exists_verification_wrapper .ea_login_loader_spinner::before {
    width: 36px;
    height: 36px;
}

input.ea_login_submit {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1em;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    color: #fff;
    background-color: var(--color-accent);
    padding: 16px;
    min-height: 50px;
}
input.ea_login_submit:focus {
    outline: none !important;
}
input.ea_login_submit:hover {
    color: #fff;
    background-color: var(--color-accent-hover) !important;
}
input.ea_login_submit[disabled="true"] {
    background-color: var(--color-accent) !important;
    opacity: 0.5;
}

.ea_login_field.ea_accepted .ea_login_field_input {
    border-color: var(--color-green);
}

.ea_login_field.ea_rejected .ea_login_field_input {
    border-color: var(--color-red);
}

.ea_login_field .ea_login_field_error {
    color: var(--color-red);
    font-size: var(--font-text-size);
    line-height: var(--font-text-line);
    font-weight: var(--font-text-weight);
    display: none;
}
.ea_login_field.ea_rejected .ea_login_field_error {
    border-color: var(--color-red);
    display: block;
}

/* LOGIN TERMS */
.ea_login_footer {
    max-width: 432px;
}
.ea_login_footer a {
    position: relative;
}
.ea_login_footer a:hover {
    color: var(--color-accent);
}

.ea_login_footer a::after {
    position: absolute;
    border-bottom: 1px solid var(--color-border);
    content: "";
    right: 0;
    left: 0;
    bottom: 0;
}
.ea_login_footer a::after {
    position: absolute;
    border-bottom: 1px dashed var(--color-text);
    content: "";
    right: 0;
    left: 0;
    bottom: -2px;
}
.ea_login_footer a:hover::after {
    border-bottom: 1px solid var(--color-accent);
}

#ea_login_password_toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    opacity: 0.8;
    cursor: pointer;
}

#ea_login_password_toggle svg {
    width: 22px;
    height: 22px;
}
#ea_login_password_toggle svg path {
    stroke: var(--color-text);
}

#ea_login_password_toggle:hover {
    opacity: 1;
}
#ea_login_password_toggle:hover svg path {
    stroke: var(--color-accent);
}

#ea_login_password_toggle span.ea_hide_password {
    display: none;
}
#ea_login_password_toggle.ea_show_password span.ea_hide_password {
    display: block;
}

#ea_login_password_toggle.ea_show_password span.ea_show_password {
    display: none;
}

#ea_login_password {
    font-weight: 400;
    font-family: sans-serif;
    padding-left: 42px;
}

/* FORM SEDONDARY BUTTONS */
.ea_login_btns_wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

button.ea_login_btn {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-text);
    padding: 2px 4px;
    border-width: 0 0 1px 0;
    border-style: dotted;
    border-color: var(--color-border);
}
button.ea_login_btn:hover {
    color: var(--color-accent);
    border-style: dashed;
    border-color: var(--color-accent);
}

button#ea_btn_resendOtp[disabled] {
    opacity: 0.5;
    cursor: default;
    color: var(--color-text) !important;
    color: var(--color-text) !important;
}

#ea_login_number,
#ea_otp_number {
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-text);
    text-align: center;
}
.ea_login_number_value {
    color: var(--color-accent);
    font-weight: 600;
}

/* OTP INPUT STYLING */
.ea_otp_input_wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5em;
}

.ea_otp_input_container {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.ea_otp_input {
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-card);
    color: var(--color-text);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    font-family: sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.ea_otp_input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.1);
    transform: scale(1.05);
}

.ea_otp_input.filled {
    border-color: var(--color-accent);
    background-color: rgba(var(--color-accent-rgb), 0.05);
}

.ea_otp_input.error {
    border-color: var(--color-red);
    background-color: rgba(var(--color-red-rgb), 0.05);
}

.ea_otp_input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive OTP inputs */
@media (max-width: 767px) {
    .ea_login_container {
        padding: 0 !important;
        min-height: 100vh;
        background-color: var(--color-card);
    }

    .ea_login_header {
        margin-bottom: 16px;
    }

    .ea_login_wrapper {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 20px 24px;
        min-height: 300px;
        border-width: 1px 0 1px 0;
        border-style: solid;
        border-color: var(--color-border);
    }

    .ea_login_footer {
        max-width: 100%;
        padding: 0 20px;
        margin-top: 16px !important;
        font-size: 12px !important;
        line-height: 2 !important;
    }
}

/* Responsive OTP inputs */
@media (max-width: 480px) {
    .ea_otp_input_container {
        gap: 8px;
    }
    
    .ea_otp_input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}