﻿@font-face {
    font-family: 'YBakh';
    src: url('/Fonts/YekanBakh.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Ybakh';
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: #ecf0f3;
}

.logo {
    background: url("/Files/Logo/AvaGap.png");
    background-size: cover;
    width: 180px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    transform: scale(0);
    animation: logoPopUp 1s ease-out forwards;
}

@keyframes logoPopUp  {
    to {
        transform: scale(1);
    }
}

.title {
    text-align: center;
    font-size: 26px;
    letter-spacing: 1px;
    animation: TitlePopUp 1s ease-out forwards;
    transform: scale(0);
    font-family: 'Ybakh';
}

@keyframes TitlePopUp {
    to {
        transform: scale(1);
    }
}


.sub-title {
    text-align: center;
    font-size: 15px;
    padding-top: 7px;
    letter-spacing: 3px;
}

.fields {
    width: 100%;
    padding: 40px 20px 20px 20px;
}

    .fields input {
        border: none;
        outline: none;
        background: none;
        font-size: 18px;
        color: #555;
        padding: 20px 10px 20px 5px;
        font-family: 'Ybakh';
    }

.username, .password {
    margin-bottom: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    border: solid 2px #6b13ff;
    box-shadow: 0px 12px 20px 0px #cbced1, -8px -8px 15px #ffffff;
    background: #ffffff;
    font-family: 'Ybakh';
}

.fields i {
    height: 5px;
    margin: 0 10px -3px 25px;
}

.signin-button {
    outline: none;
    border: none;
    cursor: pointer;
    width: 50%;
    height: 60px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Ybakh';
    color: #fff;
    text-align: center;
    background: #5b0eeb;
    box-shadow: 3px 3px 8px #b1b1b1, -3px -3px 8px #ffffff;
    transition: 0.5s;
    margin-top: 1rem;
    background-image: linear-gradient(#5b0eeb, #b639fc);
    text-align:center
}

    .signin-button:hover {
        background: #5b0eeb;
        color: #ffffff
    }

.chip {
    text-align:center;
    justify-self: center;
    width: 17rem;
    height: 4rem;
    border-radius: 1rem;
    box-shadow: 0.3rem 0.3rem 0.6rem #bec8e4;
    display: flex;
    flex-direction:column;
    justify-content:center;
    align-items: center;
    margin-top:1rem
}

.login-div {
    width: 500px;
    height: 650px;
    padding: 60px 35px 35px 35px;
    border-radius: 40px;
    background: #ffffff;
    box-shadow: 13px 13px 20px #cbced1, -13px -13px 20px #cbced1;
    position: relative;
    border: 4px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(270deg, #5b0eeb, #b639fc, #ffffff);
    background-size: 100% 100%, 600% 600%;
    animation: borderAnimation 10s linear infinite;
}

@keyframes borderAnimation {
    0% {
        background-position: 0% 50%, 0% 50%;
    }

    50% {
        background-position: 0% 50%, 100% 50%;
    }

    100% {
        background-position: 0% 50%, 0% 50%;
    }
}
@media (max-width: 768px) {
    .login-div {
        width: 90%; 
        height: auto;
        padding: 50px 20px;
        margin: auto; 
        position: relative;
        top: 35%; 
        transform: translateY(-50%); 
    }

    .fields input {
        width: 100%;
    }

    .signin-button {
        width: 100%; 
    }
}
#otpModalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

#otpModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

    #otpModal .input-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    #otpModal .otp-inputs {
        display: flex;
        justify-content: space-between;
        gap: 5px;
    }

    #otpModal .otp-box {
        width: 40px;
        height: 40px;
        text-align: center;
        font-size: 16px;
        border: solid 2px #6b13ff;
        border-radius: 8px;
        background-color: #ffffff;
        box-shadow: inset 3px 3px 6px #cbced1, inset -3px -3px 6px #ffffff;
        outline: none;
    }

    #otpModal .btn {
        padding: 8px 14px;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        font-size: 14px;
    }

       

#otpTimer {
    font-weight: 600;
    color: #5b0eeb;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#verifyOtpModal {
    border: none;
    padding: 0.5rem; /* Increased padding */
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    width: 5rem; /* Adjusted width for better flexibility */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    background-image: linear-gradient(#5b0eeb, #b639fc);
    margin-left: 0.5rem;
}

    #verifyOtpModal:hover, .send-box .Attachment:hover {
        background: #4b09c5; /* Slightly darker on hover */
        transform: translateY(-2px); /* Slight lift on hover */
        box-shadow: 7px 7px 14px #f0f0f0, -7px -7px 14px #f0f0f0;
    }

    #verifyOtpModal:active, .send-box .Attachment:active {
        background: #5b0eeb; /* Return to original color on active */
        transform: translateY(0);
        /* Pressed effect on active */
        box-shadow: inset 3px 3px 6px #4b09c5, inset -3px -3px 6px #6b13ff;
    }
#cancelOtpModal {
    border: none;
    padding: 0.5rem; /* Increased padding */
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    width: 5rem; /* Adjusted width for better flexibility */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    background-image: linear-gradient(#cbced1, #cbced1);
    margin-left: 0.5rem;
}

    #cancelOtpModal:hover, .send-box .Attachment:hover {
        background: #4b09c5; /* Slightly darker on hover */
        transform: translateY(-2px); /* Slight lift on hover */
        box-shadow: 7px 7px 14px #f0f0f0, -7px -7px 14px #f0f0f0;
    }

    #cancelOtpModal:active, .send-box .Attachment:active {
        background: #5b0eeb; /* Return to original color on active */
        transform: translateY(0);
        /* Pressed effect on active */
        box-shadow: inset 3px 3px 6px #4b09c5, inset -3px -3px 6px #6b13ff;
    }
.remember-me {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.neumorphic-checkbox-wrapper {
    display: flex;
    cursor: pointer;
    font-size: 1.1em;
    color: #5a5a5a;
    user-select: none;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.neumorphic-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.neumorphic-checkbox-icon {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background-color: #e0e5ec;
    margin-right: 8px;
    position: relative;
    box-shadow: inset 5px 5px 10px #bebebe, inset -5px -5px 10px #ffffff;
    transition: all 0.2s ease-in-out;
}

    .neumorphic-checkbox-icon::after {
        content: '';
        position: absolute;
        top: 40%;
        left: 50%;
        width: 5px;
        height: 8px;
        border: solid #5b0eeb;
        border-width: 0 3px 3px 0;
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
        opacity: 0;
        transition: all 0.2s ease-in-out;
    }

.neumorphic-checkbox:checked + .neumorphic-checkbox-icon::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
    opacity: 1;
}

.remember-me label {
    margin-left: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

    .loader.hidden {
        display: none;
    }

    .loader .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #5b0eeb;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .loader p {
        margin-top: 10px;
        font-size: 14px;
        color: #5b0eeb;
        font-weight: 600;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

