﻿
@font-face {
    font-family: 'Arada';
    src: url('../fonts/Arada-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AradaHeading';
    src: url('../fonts/AradaHeadline-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SFProText';
    src: url('../fonts/sf-pro-text-semibold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body, html, button, a, input, h1, h2, h3, h4, h5, h6, p, div, span {
    font-family: 'Arada' !important;
}
.uaePassLink {
    align-items: center;
    justify-content: center;
    display: flex;
    min-height: 44px;
    min-width: 300px;
    width: fit-content;
    border: none;
    background-color: #FFF;
    text-decoration: none;
    font-size: 19pt;
    color: #000;
    line-height: 1;
    letter-spacing: 0px;
    text-align: center;
    padding: 10px 30px;
    font-family: 'SFProText' !important;
}

.uaePassMobileText {
    display: none;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.uaePassIcon {
    margin-right: 5px;
    height: 30px;
}

@media(max-width:768px) {
    .uaePassLinkText {
        display: none;
    }

    .uaePassLink {
        min-width: fit-content;
        padding: 10px;
    }

    .uaePassMobileText {
        display: block;
    }

    .uaePassIcon {
        margin-right: 0;
    }

    #toast-container {
        top: 90px !important;
        transform: translateX(-50%) !important;
    }
}
 

.get-otp-via {
    margin: 18px 0 5px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.9;
}


#OrButton {
    color: white;
    margin: 5px 0;
}

    #OrButton:disabled {
        opacity: 1; /* prevent graying out when disabled */
    }

/* Make toast full-width at top */
#toast-container > .toast {
    width: 100% !important;
    height: 100%;
    max-width: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: none !important;
}

    /* Success toast look */
    #toast-container > .toast.toast-success {
        background-color: #008E6D !important; /* green */
        opacity: 1;
        color: #fff !important;
        background-image: url('/images/toaster-tick.svg') !important;
        background-size: 16px 16px !important;
    }


#toast-container {
    position: fixed !important;
    top: 78px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto; /* ✅ allow dynamic width */
    max-width: 490px;
    min-height: 60px;
    height: auto;
    background: #F65275;
    font-weight: 400;
    font-size: 16px;
}


.toast-message {
    width: 100%;
}
.toast-icon img {
    width: 16px;
    height: 16px;
}

.logo-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6vh;
}

/* Adjust logo margin when ResendLinkErrors is visible on small height screens */
@media (max-height: 635px) {
    .form-wrapper.otp-mode {
        padding-top: 22px !important;
    }

    .form-wrapper {
        max-height: max-content;
        min-height: auto;
    }

    .description {
        margin: 8px 0 !important;
    }

    #verifyBtn {
        margin-top: 16px !important;
    }
}

@media (max-height: 700px) {
    body.resend-errors-visible .logo-header {
        margin-top: 3vh;
    }
}

@media (max-height: 560px) {
    .logo-header {
        margin-top: 3vh;
    }
}


.loader-container {
    padding: 100px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background-color: rgba(34, 34, 34, 0.7);
}

.loader {
    height: 100px;
    width: 100px;
    background-color: #fff;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    font-family: 'Arada', sans-serif;
}

.full-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    /*    background: rgba(234, 239, 245, 1);*/
    /*    background-image: url('../images/selectionbg.png');*/
    background-size: cover;
    background-position: 71% center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    /*max-width: 440px;
    height: 956px;*/ /* This height might still cause issues if content grows too much for the scaled view */
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    overflow-y: auto; /* Keep this if you anticipate content potentially exceeding the card height after scaling */
    /*    transform: scale(0.65);
    transform-origin: center;*/
    position: relative; /* Added to make sure content inside doesn't overflow when scaled */
    gap: 16px;
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

@media (max-width: 1280px) {

    .clear-btn {
        right: 3vw;
    }

    .card {
        width: 100vw;
        height: 100vh;
        transform: none;
        max-height: none;
        max-width: none;
    }

    .submit-btn-with-contact-error {
        margin: 3.3vh 0 0;
    }

    /*    h2 {
        margin: 0 5.56vw;
    }*/

    #loginForm {
        /*        padding: 3vh 6vw 0 !important;*/
    }

    .heading {
        height: 6.44vh !important;
        padding: 0 6vw !important;
    }
}

.grecaptcha-badge {
    visibility: hidden;
}


.header {
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #000000;
    position: relative;
    border-bottom: solid 1px #FFFFFF80;
}

.actual-header {
    width: 100%;
    height: 65px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    /*    background: #E8EDF2;*/
}

.back-btn {
    /*    transform: translateY(-50%);*/
    background: none;
    border: none;
    cursor: pointer;
    width: 17.5px;
    /*    height: 10px;*/
}

    .back-btn svg {
        width: 16px;
        height: 16px;
    }

.arrow-div {
    height: 100%;
    position: absolute;
    display: flex;
    /*    display: none;*/
    align-items: center;
    filter: drop-shadow(0 0 2px #FFFFFF);
    padding-left: 26px;
}

.header-title {
    /*    padding-left: 143.5px;*/
    font-weight: 700;
    font-size: 18px;
    line-height: 16px;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    font-family: 'AradaHeading' !important;
}

.form-wrapper {
    min-height: auto;
    width: 90%;
    max-width: 500px;
    min-width: 328px;
    padding: 22px;
    background: #000000B2;
    backdrop-filter: blur(9px);
    border: 1px solid #2A2E30;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 75px;
}

    .form-wrapper.otp-mode {
        padding-top: 45px;
    }

.signInHeading {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
}

.description {
    color: #CACACA;
    font-size: 16px;
    font-weight: 400;
}

h2 {
    font-weight: 400;
    /*    margin: 0 24px;*/
    margin: 0;
    /*    position: absolute;*/
    /*    width: 159px;*/
    /*    height: 16px;*/
    /*    top: 24px;*/
    /*    left: 24px;*/
    font-size: 22px;
    /*    line-height: 23px;*/
    letter-spacing: 0px;
}

.heading {
    /*    position: absolute;*/
    width: 100%;
    height: 60px;
    min-height: 60px;
    /*    top: 90px;*/

    display: flex;
    align-items: center;
    padding: 0 24px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    padding-top: 5px;
}


.form-group-email {
    position: relative;
}

/* Floating label */
.floating-label {
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 16px;
    font-weight: 400;
    pointer-events: none;
    background: #1E1E1E;
    padding: 2px 4px;
    opacity: 0;
    transform: translateY(0);
    transition: 0.25s ease all;
}

/* When input is focused or has text */
.form-control:focus + .floating-label,
.form-control:not(:placeholder-shown) + .floating-label {
    top: -8px;
    font-size: 12px;
    color: #94A3B8;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0px 1px 2px 0px #7999B61A;
}


.form-group-otp {
    /*    width: 382px;*/
    width: 100%;
    height: 56px;
    /*    position: absolute;
    left: 24px;
    top: 381px;*/
    border-radius: 12px;
    border-width: 1px;
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    border: 1px solid #393F4B;
    background-color: transparent !important;
    font-family: 'Arada';
    color: #FFFFFF;
    font-weight: 300;
    background-clip: padding-box;
}

    /* Chrome, Edge, Safari autofill override */
    input[type="text"]:-webkit-autofill,
    input[type="email"]:-webkit-autofill,
    input[type="tel"]:-webkit-autofill,
    input[type="text"]:-webkit-autofill:hover,
    input[type="email"]:-webkit-autofill:hover,
    input[type="tel"]:-webkit-autofill:hover,
    input[type="text"]:-webkit-autofill:focus,
    input[type="email"]:-webkit-autofill:focus,
    input[type="tel"]:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
        -webkit-text-fill-color: #FFFFFF !important;
        transition: background-color 9999s ease-in-out 0s;
        background-clip: text !important; /* Clips background to text */
        -webkit-background-clip: text !important; /* Vendor prefix for Safari/Chrome */
    }

input:focus {
    outline: none;
    border: 1px solid #94A3B8;
}


.with-email-error {
    margin-top: 10px;
}

.submit-btn {
    min-height: 50px;
    border: none;
    transition: all 0.3s ease;
    background-color: rgba(29, 66, 138, 1);
    font-weight: 400;
    font-size: 18px;
    color: #FFFFFF;
    cursor: not-allowed;
    opacity: 0.2;
    /* width: 382px; */
    width: 100%;
    font-family: 'Arada', sans-serif !important;
    padding: 0;
}

    .submit-btn.active {
        background-color: #1D428A;
        cursor: pointer;
        opacity: 1;
    }

    .submit-btn.back-to-signin-btn {
        display: none;
        background: #383838;
        opacity: 1;
        cursor: pointer;
        margin-top: 5px;
    }

    .submit-btn.get-otp {
        top: 246px !important;
    }

.otp-section {
    display: none;
    height: 100%
}

.otp-title {
    /*    width: 430px;*/
    display: flex;
    align-items: center;
    height: 50px;
    /*    height: 60px;*/
    /*    position: absolute;
    top: 246px;*/
}

#otp-container {
    padding: 5% 5.5%;
    background-color: rgba(255, 255, 255, 1);
}

.otp-actual-title {
    /*    height: 14px;*/
    /*    position: absolute;
    top: 24px;
    left: 24px;*/
    font-family: 'Arada', sans-serif;
    font-weight: 700;
    font-size: 18px;
    /*    line-height: 23px;*/
    letter-spacing: 0px;
}

.otp-text {
    /*    width: 430px;*/
    /*    height: 64px;*/
    gap: 0.5vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: .5vh 0 1.5vh;
    /*    position: absolute;
    top: 301px;*/
}

.otp-instruction-text {
    font-family: 'Arada', sans-serif;
    font-weight: 400;
    font-size: 16px;
    /*    line-height: 24px;*/
    letter-spacing: 0px;
    color: #9AA4B5;
}

.otp-highlight {
    font-family: 'Arada', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0px;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    height: 20px;
    /*    position: absolute;
    top: 38px;
    left: 24px;*/
}

#edit-svg {
    width: 20px;
    height: 20px;
    padding-left: 5px;
}

#otpTarget {
    top: 44px;
}
/* #otpInput {
                                                                    width: 382px;
                                                                    height: 56px;
                                                                    border-radius: 12px;
                                                                    border: 1px solid #D1DBE5;
                                                                    opacity: 1;
                                                                    font-size: 16px;
                                                                    padding: 0 16px;
                                                                    margin-top: 12px;
                                                                } */


.resend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding-top: 24px;
    text-align: center;
}

.resend-text {
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
}

.resend-timer {
}

#timer {
    font-weight: 400;
    font-size: 14px;
    /* line-height: 2; */
    color: #F65275;
    margin-top: 5px;
}

.resend a {
    color: #808080;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0px;
}

    .resend a.disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
    }

.error {
    color: red;
    font-size: 12px;
    /*    font-size: 0.9rem;*/
    margin-top: 5px;
}

#otpErrorMsg {
    text-align: left;
    /*    position: absolute;
    top: 432px;
    left: 24px;*/
}

.ResendLinkErrors {
    text-align: left;
    /*    position: absolute;
    top: 485px;
    left: 24px;
    width: 354px;*/
    font-size: 14px;
    font-family: 'Arada', sans-serif !important;
    font-weight: 400;
    line-height: 17px !important;
    letter-spacing: 0px;
    background-color: rgba(242, 245, 249, 1);
    display: flex;
    flex-direction: column;
    padding: 10px 24px;
    gap: 4px;
}

/* Container for ResendLinkErrors outside form-wrapper */
#resendErrorsContainer {
    display: none;
    width: 90%;
    max-width: 500px;
    min-width: 328px;
}

.otp-error {
    border: 1px solid red !important;
}

/* OTP success */
.otp-success {
    /*// border: 2px solid #28a745 !important;*/ /* Green border */
    background-color: #6BCABA4D !important;
    background: url('/images/tick.svg') no-repeat right 10px center;
    background-size: 40px;
}


/* Megha Changes */
/* input[type="email"]:invalid {
                                                                    border: 2px solid red !important;
                                                                } */

/* input[type="email"]:focus:invalid {
                                                                    border: 2px solid red !important;
                                                                    outline: none;
                                                                } */


.input-error {
    border: 1px solid red !important;
}

.Notification-bar {
    height: 25px;
    width: 100%;
    /*    background: #E8EDF2;*/
    color: #fff;
}

.field-error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    line-height: 20px;
    text-align: left;
    margin-bottom: -2vh;
    /*    position: absolute;*/
    /*    top: 50px;*/
}
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f4435e;
    color: white;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.toast-icon {
    margin-right: 10px;
    font-size: 16px;
    height: 16px;
}
#toast-message{
    line-height:1.5;
    word-break: break-word;
}

.submit-btn-with-contact-error {
    margin: 42px 0 0;
}
.boxed-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 15px 0px 0px;
}

    .boxed-divider span {
        padding: 4px 10px;
        font-family: 'Arada', sans-serif;
        font-size: 16px ;
        font-weight: 400;
        text-transform: uppercase;
        color: #fff;
        border-radius: 4px;
    }
