@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* @font-face {
    font-family: 'SHREE-TAM7-0800';
    src: url(.) format('ttf'),
         url('path-to-your-font-files/SHREE-TAM7-0800.woff') format('woff');
} */

/* @font-face{
    font-family: 'SHREE-TAM7-0800';
    src:url('Fonts/SHREE-TAM7-0800.otf') format('localtype');
} */


:root{
    --green_1 : #80AFA5;
    --green_2 : #D3F6D0;
    --green_3 : #ABE2D0;
    --green_4 : #AADBD7;
    --yellow : #E0E2AB;
    --blue_1 : #D1D0EB;
    --blue_2 : #3F8A8F;
    --blue_4 : #37787c;
    --blue_3 : #A192A7;
    --brown_1 : #EADDCF;
    --brown_2 : #E5CAB3;
    --pink : #C27B98;
    --purple: #A192A7;
    --grey: #858585;
}

body {
    background-color: #e9e9e9;
    overflow: hidden;
}
.container {
    position: relative;
    max-width: 460px;
    margin: 30px 0 0 -50px;
}
.card {
    position: relative;
    background-color:var(--green_4);
    border-radius: 5px;
    padding: 60px 0 40px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .2);
    transition: all .3s ease;
}

.container .card:first-child {
    background-color: var(--green_1);
    border-radius: 5px 5px 0 0;
    height: 10px;
    margin: 0 10px;
    padding: 0;
}

.container .card .title {
    position: relative;
    z-index: 1;
    border-left: 5px solid var(--blue_4);
    margin: 0 0 35px;
    padding: 10px 0 10px 50px;
    color: var(--blue_4);
    font-size: 32px;

}

.container .card .input-container input {
    outline: 0;
    z-index: 1;
    position: relative;
    background: transparent;
    width: 100%;
    height: 60px;
    border: 0;
    color: #212121;
    font-size: 22px;
}

.input-container {
    position: relative;
    margin: 0 60px 50px 60px;
}

.container .card .input-container label {
    position: absolute;
    top: 0;
    left: 0;
    color:#555;
    font-size: 24px;
    line-height: 60px;
    transition: all .2s ease;
}

.container .card .input-container input:focus~label {
    color:#555;
    transform: translate(-12%, -50%) scale(.75);
}

.container .card .input-container .bar {
    position: absolute;
    right: 0;
    bottom: 0;
    background:#858585;
    width: 100%;
    height: 1px;
}

.container .card .input-container .bar::before,
.container .card .input-container .bar::after {
    content: '';
    position: absolute;
    background: var(--blue_4);
    width: 0;
    height: 2px;
    transition: all .2s ease;

}

.container .card .input-container .bar::before {
    right: 50%;
}

.container .card .input-container .bar::after {
    left: 50%;
}

.container .card .input-container input:focus~.bar::before,
.container .card .input-container input:focus~.bar::after {
    width: 50%;
}

.container .card .input-container input:hover~.bar::before,
.container .card .input-container input:hover~.bar::after {
    width: 50%;
}

.container .card .button-container {
    margin: 0 60px;
    text-align: center;
}

.container .card .button-container button {
    outline: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
    background: transparent;
    width: 240px;
    border: 2px solid #858585;
    background-color:darkgray;
    padding: 13px 0;
    font-size: 24px;
    transition: border-color .3s ease;
}

.container .card .button-container button span {
    z-index: 1;
    color:#555;
    transition: color .3s ease;
}

.container .card .button-container button:hover {
    background-color: var(--blue_4);
}

.container .card .button-container button:hover span {
    color:#f2f2f2;
}

.container .alt {
    position: absolute;
    top: 40px;
    right: -70px;
    width: 140px;
    height: 140px;
    background: none;
    box-shadow: none;
    border-radius: 100%;
    transition: all .3s ease;
    padding: 0;
}

.container .alt .toggle {
    position: relative;
    background-color: var(--blue_4);
    width: 140px;
    height: 140px;
    border-radius: 100%;
    box-shadow: 0 4px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 58px;
    line-height: 143px;
    text-align: center;
    cursor: pointer;
}

.container .alt .toggle::before {
    content: '\f040';
    font-family: FontAwesome;

}

.container .alt .title,
.container .alt .input-container,
.container .alt .button-container {
    right: 100px;
    opacity: 0;
    visibility: hidden;
}

.container .alt .title {
    position: relative;
    border-color: #fff;
    color: #fff;
}

.container .alt .close::before {
    content: '\00d7';
    color: #fff;
}

.container .alt .close {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 60px;
    display: inline;
    font-size: 58px;
    font-weight: 300;
}

.container .alt .input-container input {
    color: #fff;
}

.container .alt .input-container input:focus~label {
    color: #fff;
}

.container .alt .input-container input:focus~.bar::before,
.container .alt .input-container input:focus~.bar::after,
.container .alt .input-container input:hover~.bar::before,
.container .alt .input-container input:hover~.bar::after {
    background: #fff;
}

.container .alt .input-container label {
    color: rgba(255, 255, 255, .8);
}

.container .alt .input-container .bar {
    background-color: rgba(255, 255, 255, .8);
}

.container .alt .button-container button {
    width: 100%;
    background-color:rgba(255, 255, 255, .9);
    border-color:#888;

}

.container .alt .button-container button span {
    color:#555;
}

.container .alt .button-container button:hover {
    background: var(--pink);
    color: white;
}

/* add class active styles*/
.active .card:first-child {
    margin: 0 15px;
    background: var(--green_4);
}

.active .card:nth-child(2) {
    margin: 0 10px;
    background: var(--green_1);
}
.active .alt {
top: 20px;
right: 0;
width: 100%;
height: auto;
border-radius: 5px;
padding: 60px 0 50px;
overflow: hidden;
opacity: 1;
visibility: visible;
transition: all 0.3s ease;
}

.active .alt .toggle {
    position: absolute;
    top: 0;
    right: 0;
  width:100%;
    box-shadow: none;
    transform: scale(10);
}

.active .alt .toggle::before {
    content: '';
}

.active .alt .title,
.active .alt .input-container,
.active .alt .button-container {
    right: 0;
    opacity: 1;
    visibility: visible;
    transition: all .3s ease;
}

.active .alt .title {
    transition-delay: .3s;
}

.active .alt .input-container {
    transition-delay: .4s;
}

.active .alt .button-container {
    transition-delay: .7s;
}

.active .alt .input-container:nth-child(2) {
    transition-delay: .5s;
}

.active .alt .input-container:nth-child(3) {
    transition-delay: .7s;
}

.container .card .input-container input.filled ~ label {
color: #9d9d9d;
transform: translate(-12%, -50%) scale(.75);
}

.container.active .card:not(.alt) .show-password {
    display: none;
}


/* For the model and eye icon */

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Ensure it is on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 10px;
    border: 1px solid #888;
    width: 310px !important;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001; /* Keep modal content above the modal background */
}

.close {
    color: #aaa;
    float: right !important;
    margin-left: 250px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.modal-content p {
    text-align: center;
}



.show-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10; /* Ensure it's above other elements */ 
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-password i {
    font-size: 18px;
    color: black;
    pointer-events: auto !important; /* Ensure pointer events are enabled */
}

.show-password i:hover {
    color: black;
}

.error {
    color: red;
    font-weight: bold;
}


/* For the model and eye icon end */


