:root {
  --offset: 6px;
}

body {
    /* background-color: #F9FAFB; */
    background-image: url('/assets/bg-courriely.png');
}

main {
    transition: all ease-in-out 0.3s;
}

h2.title-mask {
    width: 100%;
    font-size: 70px;
    font-family: Helvetica;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    transition: all ease-in-out 0.3s;
}

.mask {
    height: 71px;
    position: relative;
    line-height: 68px;
    overflow: hidden;
    margin-top: var(--offset);
}

.mask span {
    display: block;
    box-sizing: border-box;
    position: absolute;
    top: 70px;
    padding-bottom: var(--offset);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-repeat: no-repeat;
}

.mask span[data-show] {
    transform: translateY(-100%);
    transition: 0.5s transform ease-in-out;
}

.mask span[data-up] {
    transform: translateY(-200%);
    transition: 0.5s transform ease-in-out;
}

.mask span:nth-child(1) {
    background-image: linear-gradient(45deg, #99CCFF 50%, #0080FF);
}

.mask span:nth-child(2) {
    background-image: linear-gradient(45deg, #99FFCC 50%, #00FF80);
}

.mask span:nth-child(3) {
    background-image: linear-gradient(45deg, #FFCC99 50%, #FF8000);
}

.card {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(210, 210, 215, 0.64);
    backdrop-filter: blur(5px);
    border-radius: 35px;
    /* height: 500px; */
    min-height: 500px;
    height: 100%;
    padding: 40px 100px;
    gap: 0;
    transition: all ease-in-out 0.3s;
}

.progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    transition: all ease-in-out 0.3s;
}

.dot.active {
    background: #0180FF;
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.step {
    display: none;
    margin: auto;
}

.step.active {
    display: block;
    animation: fade 0.3s ease;
}

label {
    display: block;
    font-weight: 600;
    margin-top: 1rem;
}

input {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(134, 134, 139, 0.64);
    border-radius: 35px;
    width: 100%;
    padding: 12px 22px;
    margin-top: 14px;
}

.actions {
    text-align: center;
}

button {
    box-sizing: border-box;
    background-color: #0180FF;
    border-radius: 35px;
    font-family: 'Helvetica';
    font-style: normal;
    font-weight: 300;
    font-size: 17px;
    line-height: 24px;
    text-align: center;
    color: #FFFFFF;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color .25s,border-color .25s,background-color .25s;
    border: 1px solid #0180FF;
}

button.bordered {
    background-color: #FFFFFF;
    color: #0180FF;
    border: 1px solid #0180FF;
}

button.bordered:hover {
    color: #FFFFFF;
    border: 1px solid #0180FF;
}

button:hover {
    background-color: #3098ff;
    cursor: pointer;
}

button i {
    stroke-width: 1;
}

.step h2 {
    font-family: 'Helvetica';
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 32px;
    color: #000000;
    margin-bottom: 15px;
}

.step .label-heading {
    font-family: 'Helvetica';
    font-style: normal;
    font-weight: 100;
    font-size: 17px;
    line-height: 22px;
    color: #B0B0B0;
}

.imap-success {
    background: rgb(0 255 0 / 27%);
    color: green;
    font-size: 0.9rem;
    padding: 8px 18px;
    font-weight: 300;
    font-family: 'Helvetica';
    border-radius: 25px;
    margin-top: 15px;
    border: 1px solid hsl(120deg 100% 25.1% / 18%);
}

.imap-failed {
    background: rgb(255 0 0 / 27%);
    color: red;
    font-size: 0.9rem;
    padding: 8px 18px;
    font-weight: 300;
    font-family: 'Helvetica';
    border-radius: 25px;
    margin-top: 15px;
    border: 1px solid hsl(0deg 100% 25.1% / 18%);
}

.imap-loading {
    background: rgb(0 107 255 / 27%);
    color: rgb(0 107 255);
    font-size: 0.9rem;
    padding: 8px 18px;
    font-weight: 300;
    font-family: 'Helvetica';
    border-radius: 25px;
    margin-top: 15px;
    border: 1px solid hsl(215deg 100% 50% / 18%);
}

@media only screen and (max-width: 1300px) {
    .card {
        padding: 40px;
    }
    h2.title-mask {
        font-size: 55px;
    }
}

@media only screen and (max-width: 768px) {
    h2.title-mask {
        font-size: 40px;
        margin-top: -50px;
    }
    .mask {
        height: 40px;
        position: relative;
        line-height: 94px;
        overflow: hidden;
        margin-top: var(--offset);
    }
    .card {
        padding: 20px;
    }
}