@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    --mainColor: crimson;
    --black: #000000;
    --white: #FFFFFF;
    --whiteSmoke: #C4C3CA;
    --shadow: 0px 4px 8px 0 rgba(21, 21, 21, .2);
    --gradient: linear-gradient(135deg, crimson, #ff6b6b);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::before,
::after {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: normal;
    background-color: var(--black);
    /* background: url('./background.jpg') no-repeat center center fixed; */
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./background.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.text-center {
    text-align: center;
}

.btn {
    height: 55px;
    padding: 10px 25px;
    background: var(--gradient);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    letter-spacing: 1px;
    border: none;
    margin-bottom: 15px;
    margin-top: 15px;
    box-shadow: 0px 8px 24px 0 rgba(228, 10, 57, .3);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px 0 rgba(228, 10, 57, .4);
}

.form {
    width: 100%;
    display: flex;
    justify-content: center;
}

input[type="checkbox"] {
    display: none;
}

.checkbox:checked+label,
.checkbox:not(:checked)+label {
    position: relative;
    display: block;
    text-align: center;
    width: 60px;
    height: 16px;
    border-radius: 8px;
    background: var(--gradient);
    padding: 0;
    margin: 10px auto;
    cursor: pointer;
}

.checkbox:checked+label::before,
.checkbox:not(:checked)+label::before {
    position: absolute;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--mainColor);
    background-color: var(--white);
    font-family: 'Material Icons';
    content: '\f1e2';
    z-index: 20;
    top: -10px;
    left: -10px;
    line-height: 36px;
    text-align: center;
    font-size: 24px;
    transition: all .5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.checkbox:checked+label::before {
    transform: translateX(44px) rotate(-270deg);
}

.link {
    color: var(--whiteSmoke);
    margin-top: 20px;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.link:hover {
    color: var(--mainColor);
    transform: translateY(-2px);
}

.card-3d-wrap {
    width: 400px;
    max-width: 100%;
    min-height: 500px;
    height: auto;
    position: relative;
    perspective: 800px;
    margin: 0 auto;
}

.card-3d-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transition: all 800ms ease-out;
}

.checkbox:checked~.card-3d-wrap .card-3d-wrapper {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    background-color: #2a2b38;
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat.svg');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 300%;
    position: absolute;
    border-radius: 20px;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.card-front::before,
.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.card-back {
    transform: rotateY(180deg);
}

.center-wrap {
    width: 100%;
    padding: 30px;
    padding-bottom: 40px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate3d(0, -50%, 35px) perspective(100px);
    z-index: 20;
    display: block;
}

.heading {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: white;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.heading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--mainColor);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.form-group {
    position: relative;
    display: block;
    margin-bottom: 15px;
    perspective: 1000px;
}

.form-group input::placeholder {
    color: var(--whiteSmoke);
    opacity: .7;
    transition: all .2s linear;
}

.form-group input:focus::placeholder {
    opacity: 0;
    transform: translateX(10px);
    transition: all .2s linear;
}

.form-style {
    padding: 10px 15px;
    margin-bottom: 15px;
    padding-left: 60px;
    height: 55px;
    font-size: 16px;
    width: 100%;
    font-weight: 500;
    border-radius: 30px;
    line-height: 22px;
    letter-spacing: 0.5px;
    outline: none;
    color: var(--whiteSmoke);
    background-color: #242323;
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.form-style:focus,
.form-style:active {
    border: none;
    outline: none;
    box-shadow: 0 8px 24px 0 rgba(21, 21, 21, .4);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    top: 12px;
    left: 18px;
    height: 48px;
    font-size: 24px;
    text-align: left;
    color: var(--mainColor);
    transition: all .3s ease;
}

.form-group:hover .input-icon {
    transform: translateY(-2px);
    color: #ff6b6b;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--mainColor);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.signup-text {
    font-size: 16px;
    color: var(--whiteSmoke);
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.signup-question {
    color: var(--whiteSmoke);
    font-weight: 400;
    margin-right: 8px;
}

.signup-link {
    font-weight: 600;
    color: var(--mainColor);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signup-link:hover {
    color: var(--white);
    background-color: var(--mainColor);
    box-shadow: 0 6px 12px rgba(220, 20, 60, 0.3);
    transform: translateY(-3px);
}

.signup-link i {
    transition: all 0.3s ease;
}

.signup-link:hover i {
    transform: translateX(5px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(220, 20, 60, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 15px rgba(220, 20, 60, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(220, 20, 60, 0.3);
    }
}

.signup-link {
    animation: pulse 2s infinite;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
  }
  
  .modal.active {
    display: flex; /* Will show as flex when active class is added */
  }

.modal-box {
    background-color: #2A2B38;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  }

.modal.active .modal-box {
    transform: scale(1);
}

/* Floating particles animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* Success checkmark animation */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position: relative;
    top: 5px;
    right: 5px;
    margin: 0 auto;
    margin-bottom: 15px;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb71b;
    }
}

/* Input focus animation */
.form-style:focus + .input-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Card hover effect */
.card-3d-wrap:hover .card-front,
.card-3d-wrap:hover .card-back {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}