/* POPPINS FONT */
/* poppins-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* poppins-500 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/poppins-v21-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* poppins-600 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/poppins-v21-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* poppins-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins-v21-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }


.well {
    margin: 20px auto;
    position: relative;
    overflow-x: hidden;
  }

.dfoverlay_close {
    position: absolute;
    top: 24px; /* Adjust as needed */
    right: 13px; /* Adjust as needed */
    line-height: 0;
    font-size: 3.5rem;
    color: var(--text-columbia-blue);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s ease;
}

.dfoverlay_close:hover {
    color: var(--bg-carolina-blue); /* Change color on hover */
}

/* ====== Form ===== */
.dfform-container {
    display: flex;
    width: 1000px;
    height: 600px;
    /* border: 3px solid rgba(255, 255, 255, 0.3); */
    border-radius: 30px;
    backdrop-filter: blur(20px); /* This is the preferred property */
    -webkit-backdrop-filter: blur(20px); /* Ensure compatibility with Safari */
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    /* border: 1px solid var(--border-prussian-blue); */
    border: 3px solid var(--bg-prussian-blue);
    transition: var(--transition-1);
    position: relative;
}

.dfform-container.expanded {
    width: auto; /* Adjust the width to be auto for flexible layout */
    height: auto; /* Adjust the height to be auto for flexible layout */
    padding: 20px; /* Add padding for better spacing */
    justify-content: center; /* Center align items */
    align-items: center; /* Center align items */
    flex-direction: column; /* Stack items vertically */
}

/* ====== First Column ===== */
.col-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 55%;
    border-radius: 0 30% 20% 0;
    transition: border-radius 0.3s;
    /* background-color: var(--bg-carolina-blue);
    background-color: var(--bg-oxford-blue);
    background-color: var(--bg-oxford-blue-2);
    background-color: var(--bg-prussian-blue);
    background-color: var(--bg-wild-blue-yonder); */
    background-color: var(--border-prussian-blue);
}


/* ====== Featured Words ===== */
.col-1 .featured-words {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-columbia-blue);
    line-height: var(--lineHeight-1);
    margin-block-end: 60px;
    padding-inline: 60px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#messageTextTitle {
    font-size: 3rem;
    font-weight: 600;
    margin-block: 10px;
    background-image: var(--gradient-1);
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

#messageTextSubtitle {
    max-width: 320px;
    font-weight: 500;
    margin-block-start: 10px;
    font-size: var(--fontSize-3);
    line-height: var(--lineHeight-2);
    color: var(--text-columbia-blue);
    line-height: var(--lineHeight-1);
}

/* Transition class */
.featured-words.transition-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Second Column ===== */
.col-2 {
    position: relative;
    width: 45%;
    padding: 20px;
    overflow: hidden;
}
.col-2 .btn-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-inline: 20px;
}

.col-2 .btn-box .btn {
    font-weight: 500;
    padding: 5px 30px;
    border: none;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    border: 2px solid transparent;
    /* box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); */
    cursor: pointer;
    transition: background-color 0.2s, border 0.2s ease-in-out;
    transition: var(--transition-1);
}
.col-2 .btn-box .btn.active {
    /* background: var(--bg-carolina-blue); */
    background-image: var(--gradient-2);
    background-size: 200%;
    background-position: left;
}
.col-2 .btn-box .btn.active:hover {
    background-position: right;
    border: 2px solid var(--bg-carolina-blue);
}

.col-2 .btn-box .btn.inactive {
    background: var(--bg-prussian-blue);
}

.col-2 .btn-box .btn.inactive:hover {
    border: 2px solid var(--bg-carolina-blue);
}

/*  ======= Login Form ========  */
.login-form {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 5rem;
    transition: 0.3s;
}
/*  ======= Register Form ========  */
.register-form {
    position: absolute;
    left: -50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* padding: 0 4vw; */
    padding: 0 5rem;
    transition: 0.3s;
}

.register-form .form-title {
    margin-block: 40px 20px;
}

.form-title {
    margin: 40px 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.form-inputs {
    width: 100%;
}

.input-box {
    position: relative;
    transition: var(--transition-1);
    color: var(--text-wild-blue-yonder);
}





.input-field {
    position: relative;
    width: 100%;
    height: 55px;
    margin: 15px 0;
    color: #fff;
    outline: none;
    padding-inline-start: 20px;
    padding-inline-end: 40px;
    background-color: var(--bg-prussian-blue);
    border-radius: var(--radius-6);
    border: 1px solid var(--bg-carolina-blue);
    transition: var(--transition-1);
}

.input-field:focus { 
    box-shadow: var(--shadow-2);
}


.input-field::placeholder {
    color: var(--text-wild-blue-yonder);
}

.input-box ion-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-wild-blue-yonder);
}

.input-box button ion-icon {
    position: relative;
    top: 0;
    right: 0;
    transform: translateY(0);
    color: #fff;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.forgot-pass {
    display: flex;
    justify-content: right;
    gap: 5px;
}
.forgot-pass a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
.forgot-pass a:hover {
    text-decoration: underline;
}
.input-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 55px;
    background-image: var(--gradient-2);
    background-size: 200%;
    background-position: left;
    color: var(--white);
    font-weight: 500;
    margin: 15px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-1);
}

.input-submit:is(:hover, :focus-visible) {
    background-position: right;
    gap: 15px;
}

#signup_submit {
    margin-block-start: 40px;
}












#tos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-block: 20px 0;
    margin-inline-start: 5px;
    font-weight: 500;
    color: var(--text-wild-blue-yonder);
    font-size: var(--fontSize-6);
    line-height: var(--lineHeight-1);
}

#tos_register {
    color: #8b8989;
    width: 10px !important;
    height: 10px !important;
    transform: scale(1.5);
    margin-right: 5px;
}

#tos a {
    color: var(--bg-carolina-blue);
    text-decoration: none;
}
#tos a,
#tos u,
#tos a:visited {
  color: var(--bg-carolina-blue);
  text-decoration: none;
}

/* Ensure the last word breaks to the next line if needed */
#tos a:last-of-type {
    white-space: nowrap;
    flex: 1;
}




.dferror {
  clear: both;
  color: #ff4848;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
}


.success-message {

    display: none; /* Initially hidden */
    background-color: var(--bg-prussian-blue);
    color: var(--text-columbia-blue);
    width: 600px;
    padding: 90px;
    border-radius: 20px;
    box-shadow: var(--shadow-2);
    text-align: center;
    font-size: var(--fontSize-4);
    line-height: var(--lineHeight-1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 30px;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.success-message img {
    margin: 0 auto;
}

.success-message .title {
    font-size: 3rem;
    font-weight: 600;
    margin-block: 10px;
    background-image: var(--gradient-1);
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.success-message .subtitle {
    font-weight: 500;
    margin-block-start: 10px;
    font-size: var(--fontSize-5);
    line-height: var(--lineHeight-1);
    color: var(--text-columbia-blue);
}

.success-message .user-register-email {
    color: #ff4848; /* Highlight email in red */
    font-weight: bold;
    font-size: var(--fontSize-5);
    margin-block: 10px;
}

.success-message .success-text {
    font-weight: 400;
    margin-block: 10px;
    font-size: var(--fontSize-5);
    line-height: var(--lineHeight-1);
    color: var(--text-columbia-blue);
}

/* Error Message Styling */
.error-message {
    display: none; /* Initially hidden */
    width: 500px;
    background-color: var(--bg-prussian-blue);
    color: #ff4848;
    padding: 70px;
    border-radius: 20px;
    box-shadow: var(--shadow-2);
    text-align: center;
    font-size: var(--fontSize-4);
    line-height: var(--lineHeight-1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 30px;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.error-message .title {
    font-size: var(--fontSize-4);
    font-weight: 600;
    line-height: var(--lineHeight-2);
}





/* ======== Responsive ======== */
@media (max-width: 1200px) {
    .dfform-container {
        width: 900px;
    }
}

@media (max-width: 992px) {
    .dfform-container {
        width: 800px;
        
    }
    .col-1 {
        width: 50%;
    }
    .col-2 {
        width: 50%;
    }

    .col-1 .featured-words {
        padding-inline: 50px;
    }

    #messageTextSubtitle {
        font-size: var(--fontSize-4);
    }

    .login-form {
        padding: 0 4vw;
    }

    .register-form {
        padding: 0 4vw;
    }
    
}

@media (max-width: 850px) {
    .dfform-container {
        width: 700px;
        height: 550px;
    }
    .col-1 {
        width: 45%;
    }
    .col-2 {
        width: 55%;
    }

    .col-1 .featured-words {
        padding-inline: 40px;
    }
}

@media (max-width: 768px) {
    .dfform-container {
        width: 500px;
    }
    .col-1, .col-2 {
        width: 100%;
    }
    .col-1 {
        display: none;
    }

    .dfform-container.expanded {
        padding: 0; /* Add padding for better spacing */
    }

    .success-message {
        padding: 40px 20px;
        margin: 10px;
        width: auto;
    }

    .success-message .title {
        font-size: 2.5rem;
    }

    .error-message {
        padding: 40px 20px;
        margin: 10px;
        width: auto;
    }



}

@media (max-width: 575px) {
    .dfform-container {
        width: 100%;
    }
    

    #tos {
        font-size: 12px;
        gap: 3px;
    }

   
    .login-form {
        padding: 0 4vw;
    }

    .register-form {
        padding: 0 4vw;
    }
}

@media (max-width: 500px) {
    .dfform-container {
        width: 100%;
        padding: 10px;
    }

    .form-title {
        margin: 40px 0;
        color: #fff;
        font-size: 24px;
        font-weight: 600;
    }

    .col-2 {
        padding: 10px;
    }

    #tos {
        font-size: 12px;
        gap: 2px;
    }
}