:root{
    --white: #fff;
    --white-shade: #f0f0f0;
    --theme-color-primary: #a100ff;
    --theme-color-primary-opec: #a100ff99;
    --theme-color-secondary: #8000cc;
    --theme-color-secondary-opec: #8100cccb;
    --shadow-color: 0 0 10px rgba(0, 0, 0, 0.1);
}
@font-face {
    font-family: "roboto-italic";
    src: url("../fonts/Montserrat\,Roboto\,TikTok_Sans/Roboto/Roboto-Italic-VariableFont_wdth\,wght.ttf");
}

@font-face {
    font-family: "roboto";
    src: url("../fonts/Montserrat\,Roboto\,TikTok_Sans/Roboto/Roboto-VariableFont_wdth\,wght.ttf");
}
@font-face {
    font-family: "tiktok-sans";
    src: url("../fonts/Montserrat\,Roboto\,TikTok_Sans/TikTok_Sans/TikTokSans-VariableFont_opsz,slnt,wdth,wght.ttf");
}

@font-face {
    font-family: "montserrat-italic";
    src: url("../fonts/Montserrat\,Roboto\,TikTok_Sans/Montserrat/Montserrat-Italic-VariableFont_wght.ttf");
}
@font-face {
    font-family: "montserrat";
    src: url("../fonts/Montserrat\,Roboto\,TikTok_Sans/Montserrat/Montserrat-VariableFont_wght.ttf");
}


body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "tiktok-sans";
}

.login-body{
    width: 100%;
    height: 100dvh;
}
.login-background{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.content-wrapper{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wrapper-login{
    width: calc(100% - 100px);
    height: calc(100% - 80px);
    border-radius: 20px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    justify-content: flex-start;
}
.login-side-a{
   position: relative;
   background-image: linear-gradient(to top, var(--theme-color-primary-opec), var(--theme-color-secondary-opec));
   height: 100%;
   width: 40%;
}
.login-side-b{
   height: 100%;
   width: 60%;
   padding: 0px 20px;
   display: flex;
   justify-content: center;
   align-items: center;
}
.login-side-b-wrapper{
    position: relative;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.image-logo-a{
    position: absolute;
    top: 5%;
    width: calc(100% - 40px);
    height: auto;
}
.image-logo-b{
    position: absolute;
    top: 15%;
    width: calc(100% - 20px);
    height: auto;
}
.login-header{
    display: flex;
    justify-content: space-around;
    gap: 10px;
    width: calc(100% - 24px);
    padding: 12px;
    border-radius: 20px;
    background: #dddddd;
    transition: background .4s ease-in-out;
}
.nav-link{
    text-decoration: none;
    color: #5a5959;
    font-weight: 700;
    font-size: 1rem;
}
.login-full-logo{
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    width: calc(100% - 40px);
    padding: 10px 20px;
    border-radius: 100px;
}
.login-full-logo img{
    height: 68px;
    width: auto;
}
.login-form{
    background-image: linear-gradient(to top, var(--theme-color-primary), var(--theme-color-secondary));
    border-radius: 20px;
    padding: 20px 50px;
}
.admin-caption{
    margin: 0 !important;
    color: #fff;
    font-size: .8rem;
    background-color: #3d3d3d;
    width: calc(fit-content * 2);
    padding: 5px 50px;
    border-radius: 20px;
    float: right;
}
.login-form form{
    clear: both;
    padding: 10px 0px;
}
 .login-input{
    position: relative;
    width: 100%;
}
.login-input input{
    position: relative;
    width: calc(100% - 40px);
    color: #5a5959;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px;
    margin: 10px 0px;
    border-radius: 25px;
    border: none;
    border-left: 20px #333 solid;
    transition: all .5s ease-in-out;
}

.login-input input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.582);
}

.login-label {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    color: #dfdfdf;
    font-weight: 700;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.login-label.active {
    top: -10px;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(0%);
}

.login-buttons{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}
.remember-me{
    color: #fff;
    display: flex;
    gap: 4px;
}
.remember-me p{
    margin: 0 !important;
}
.sign-button input{
    background-color: #fff;
    color: #333;
    font-weight: 600;
    font-size: .7rem;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    transition: all .3s ease-in-out;
}
.sign-button input:hover{
    background-color: #333;
    color: #ffffff;
}
.forgot-pwd{
    display: flex;
    justify-content: center;
}
.forgot-pwd button{
    background-color: transparent;
    border: 1px #fff solid;
    border-radius: 20px;
    padding: 5px 20px;
    color: #fff;
    width: 300px;
    transition: all .3s ease-in-out;
}

.forgot-pwd button:hover{
    background-color: #fff;
    color: #333;
}

.forgot-pwd button:active{
    background-color: #000;
    color: #fff;
    border: 1px black solid;
}

.twilight-effect-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: #161616;
}

/* Pseudo-element with shine */
.twilight-effect-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    color: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;

    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    background-position: -150% center;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    pointer-events: none;
    z-index: 2;
}

/* Shine on hover — plays once */
.twilight-effect-text:hover::before {
    opacity: 1;
    animation: shine-text 1.2s ease-out forwards;
}

/* Keyframe for single sweep */
@keyframes shine-text {
    0% {
        background-position: -150% center;
    }
    100% {
        background-position: 150% center;
    }
}


.twilight-effect {
    position: relative;
    overflow: hidden;
}

.twilight-effect::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(0deg);
    animation: shine-move 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine-move {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

/* Modal overlay and content */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal box */
.modal-content {
    background-image: linear-gradient(to top, var(--theme-color-primary), var(--theme-color-secondary));
    padding: 30px 25px;
    border-radius: 10px;
    width: 320px;
    box-shadow: 0 0 20px rgba(255,255,255,0.15);
    color: #dfdfdf;
    font-family: inherit;
}

/* Modal header */
.modal-content h3 {
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

/* Modal input inherits your floating label styles */
.modal-content .login-input {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.modal-content .login-field {
    width: 100%;
    padding: 10px;
    border-radius: 25px;
    border: none;
    border-left: 20px #333 solid;
    color: #5a5959;
    box-sizing: border-box;
}
.text-center{
    text-align: center;
}
.text-white{
    color: white;
}
.success-mail.modal-content {
    background-image: linear-gradient(to top, var(--theme-color-primary), var(--theme-color-secondary), #6fff7b) !important;
}

.error-mail.modal-content {
    background-image: linear-gradient(to top, var(--theme-color-primary), var(--theme-color-secondary), #ff6f6f) !important;
}

.warning-text {
    color: #ff6fcf;
    font-size: 0.9rem;
    margin-top: -20px;
    text-align: center;
    display: none;
}

/* Label styling */
.modal-content .login-label {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    color: #dfdfdf;
    font-weight: 700;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Label moves up */
.modal-content .login-label.active {
    top: -10px;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(0%);
}

/* Modal buttons container */
.modal-buttons {
    display: flex;
    justify-content: space-between;
}

/* Send mail button */
.send-mail-btn {
    background: #ff6fcf;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.send-mail-btn:hover {
    background: #e65bbe;
}

/* Cancel button */
.close-btn {
    background: #555;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #dfdfdf;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #444;
}


/* Mobile */
@media (max-width: 768px){
  .wrapper-login {
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: space-around;
    gap: 10px;
  }

  .content-wrapper{
    width: 100%;
  }
  .login-body{
    overflow: hidden;
  }
  .login-side-a{
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
  }
  .login-side-b{
    height: 100%;
    width: calc(100% - 40px);
    padding: 0px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .login-side-b-wrapper{
    height: 600px;
  .login-header{
    background: #ffffff;
  }
  .login-full-logo{
    backdrop-filter: blur(5px);
  }
  }
}

/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .wrapper-login {
    flex-direction: row;
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    gap: 15px;
  }
}

/* Desktop */
@media only screen and (min-width: 1025px) {
  .wrapper-login {
    flex-direction: row;
    /* grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); */
    gap: 20px;
  }
}
