@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');

/*
  VARIABLES DECLARATION ON ROOT
*/
:root {
    --green: #6F3619;
    --red: rgb(252, 86, 108);
    --dusky-green: #F7F7F7;
    --opac-white: rgba(255, 255, 255, .8);
    --form-txt:  rgba(255, 255, 255, .5);
    --darky: #1d2b3a;
    --light-grey: rgb(105, 105, 105);
}


/*
    COMMON STYLING
*/
* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/* body {
    overflow: hidden;
} */


/* 
    MAIN(SIGN-UP CARD) SECTION
*/
.card-container {
    display: grid;
    grid-template-columns: calc(100% - 60%) auto;
    /*height: 100vh;*/
    width: 100%;
    overflow: hidden;
    background-color: #F7F7F7;
}


/*
    FORM SECTION
*/
.form-container {
    width: 50vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    padding: 50px;
    color: #000;
}

.form-container2{
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr;
    gap: 45px;
    color: var(--form-txt);
    place-self: center;
    
}
.form-header {
    grid-column: 1 / -1;
    letter-spacing: .06em;
    margin-bottom: 30px;
    font-size: 40px;
    color: black;
}
input:not([id^="tarteaucitron"]) {
    display: block;
    border-radius: 4px;
    border: 0;
    border-bottom: 1px solid rgb(0,0,0,.4);
    padding: 6px 8px 8px 10px;
    margin-top: 5px;
    /* background-color: rgba(255, 255, 255, 0); */
    transition: all .5s ease-in;
} 
input::placeholder{
    content: none;
}
span::not([id*="tarteaucitron"]):not([class*="tarteaucitron"]):not([id*="mandatory"]):not([class*="Toggle"])  {
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: 15px;
    transition: all .4s;
}
[type="submit"]{
    border: 0;
    background-color: #ddbfa5;
    color: black;
    padding: 10px 50px;
    letter-spacing: .05em;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 17px;
    outline: none;
}
form:not([id^="tarteaucitron"]) {
    width: auto;
    display: grid;
    place-items: center;
}
.btm-text {
    margin-top: 15px;
    font-size: 14px;
    color: black;
    }
.btm-text-highlighted {
    color: var(--dusky-green);
}
.input-container {
    position: relative;
    color: #465b52;;
}
.input-container input{
    color: #465b52;
    
}
.input-container span{
    font-size: 13px;
}
span:not(.btm-text-highlighted):not([id*="tarteaucitron"]):not([class*="tarteaucitron"]):not([id*="mandatory"]):not([class*="Toggle"]) {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    pointer-events: none;
    white-space: nowrap; /* evita il wrapping del testo */
    overflow: hidden; /* nasconde il testo in eccesso */
    text-overflow: ellipsis; /* mostra i puntini di sospensione per indicare l'overflow */
}
#btm{
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/*
    INPUT FIELD EFFECTS SECTION
*/
input:focus ~ span,
input:valid ~ span, .email-focus{
    font-size: 10px;
    transform: translateX(4px) translateY(-7px);
    font-size: 0.80em;
    padding: 0 6px !important;
    color: var(--cyny-green);
    background-color: var(--dusky-green);
    border-radius: 2px;
}
input:focus,
input:focus-visible {
    border: 1px solid  var(--green);
    box-shadow: 0 0 5px rgb(0,0,0,.3);
    outline: none;
}
input:valid {
    border: 1px solid var(--green);  
}


/* 
    ERROR PROMPTER SECTION
*/
.error {
    color: rgb(255, 51, 51);
    font-family: sans-serif;
    font-weight: 500;
    text-transform: none;
    overflow: hidden;
    margin-top: 4px;
}


/*
    IMAGE ILLUSTRATION SECTION
*/
.image-container{
    display: grid;
    place-items: center;
    background-color: var(--dusky-green);
    color: white;
}
.image-container > img {
    width: calc(90%);
}
.company, 
.image-container > .quote {
        width: 100%;
        height: 100%;
        text-align: center;
        font-size: 19px;
}
.company {
    font-size: 34px;
    text-align: left;
    height: 70px;
    align-self: flex-start;
    padding: 2% 0 0 5%;
}
.outro-overlay > .company{
    position: absolute;
    top: 0;
}
.mobile-btm-nav {
    display: none;
}


/*
    FORM NAVIGATION (FOR-MOBILE)
*/
.mobile-btm-nav {
    text-decoration: none;
    display: none;
}
.mobile-btm-nav > img {
    transform: scale(.3) rotateZ(180deg);
}
footer{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
footer .col{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}
footer .install{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
footer .logo{
    margin-bottom: 30px;
}
footer h4{
    font-size: 14px;
    padding-bottom: 20px;
}
footer p{
    font-size: 13px;
    margin: 0 0 8px 0;
}
footer a{
    font-size: 13px;
    text-decoration: none;
    color: #222;
    margin: 10px;
}
footer .follow{
    margin-top: 20px;

}
footer .follow i{
    color: #465b52;
    padding-right: 4px;
    cursor: pointer;
}
footer .follow i:hover, footer a:hover{
    color:#6F3619;
}
footer .install .row img{
    border: 1px solid #6F3619;
    border-radius: 6px;
}
footer .install img{
    margin: 10px 0 15px 0;
}
footer .copyright{
    width: 100%;
    text-align: center;
}

/*
    FLOATING ANIMATION FOR BOTTOM-NAV (FOR-MOBILE-VERSION)
*/
@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-10px);
	}
	100% {
		transform: translatey(0px);
	}
}

/* .card-container {
    display: none;
} */


/* 
    GREETING SECTION (SHOWS AFTER SIGNING UP)
*/
.outro-overlay {
    display: flex;
    background-color: var(--dusky-green);
    height: 100vh;
    width: 100%;
    z-index: 0;
    overflow: hidden;
    align-items: center;
    justify-content: space-evenly;
    color: white;
    position: relative;
}
.outro-overlay > #signedUp-illustration {
    height: 90%;
    z-index: 2;
}
.outro-overlay > .shape {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    animation: 1.3s 1 forwards cubic-bezier(.36,-0.01,.5,1.38) slideRight;
    width: 150%;
}
.outro-overlay > .outro-greeting {
    z-index: 3;
    font-weight: 700;
    letter-spacing: .02em;
    word-spacing: .1em;
}
.disabled {
    display: none ;
}


/*
  SVG ANIMATION
*/
.slideUp-animation {
    animation: 1.3s 1 forwards cubic-bezier(.36,-0.01,.5,1.38) slideUp;animation-delay: 0s;
} 
.slideRight-animation {
    animation: 1.3s 1 forwards cubic-bezier(.36,-0.01,.5,1.38) slideRight;animation-delay: 0s;
}                             
@keyframes slideUp {  
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: inherit;  }    
}                    
@keyframes slideRight {              
    0% { opacity: 0; transform: translateX(30px); }                
    100% { opacity: 1; transform: translateX(0);   }
}


/*
    AUTHOR LINK
*/

a:not([id^="tarteaucitron"]) {
    
    color: black;
    transition: .3s ease-out;
}



/*
    MEDIA QUERY SECTION
*/
@media (max-width: 1520px) {
    footer .install img {
        width: 100%;
    }
    .outro-overlay {
        flex-direction: column;
    }
    .outro-overlay > #signedUp-illustration {
        height: 70%;
        z-index: 2;
    }
    .outro-overlay > .shape {
        z-index: -2;
    }
    .form-container {
        display: grid;
        place-items: center ;
        grid-template-columns: none;
        grid-template-rows: none;
        width: 100%;
        gap: 25px;
        padding: 0;
        color: #000;
    }
    #btm{
        align-items: center;
    }

}
@media (max-width: 600px) {
   
    /* 
        For mobile phones: 
    */
    body {
        width: 100%;
        overflow: visible;
    }
    .image-container > [class] {
        transform: scale(1);
    }
    .quote {
        margin-top: -50px;
    }
    .card-container {
        grid-template-rows: 100vh minmax(100vh, auto);
        grid-template-columns: none;
        overflow: hidden;
        height: auto;
    }
    .image-container {
        width: 100%;
        position: relative;
    }
    .image-container > img {
        width: calc(110%);
    }
    .error {
        font-size: 13px;
    }
    
    .mobile-btm-nav {
        display: block;
        position: absolute;
        bottom: 0;
        display: block;
        animation: float 1s cubic-bezier(0.59, 0.575, 0.565, 1) infinite;
    }
    form:not([id^="tarteaucitron"]) {
        padding: 50px;
        display: flex;
        align-items: center;
    }
    .outro-overlay {
        flex-direction: column;
        justify-content: center;
        gap: 30px;
    }
    .outro-overlay > #signedUp-illustration {
        height: auto;
        z-index: 2; 
    }
    .outro-overlay > .shape {
        display: none;
    }
    .outro-overlay > .outro-greeting {
        font-size: 20px;
        order: 1;
    }
    
}
