@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anek+Kannada:wght@100..800&family=Anton&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Inter", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url(imgs/03_Elementos_gráficos/PNG/Recurso\ 2.png);
}

.change-pass {
    color: #111;
    font-size: smaller;
    font-weight: 100;
}

.change-pass:hover{
    color: #FF9000;
}

/*modal token login*/

#token-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

#token-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease;
    text-align: center;
    position: relative;
}

#token-modal-content input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-log-modal {
    background-color: #FF9000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-log-modal:hover {
    background-color: #bd700c;
}

#token-modal-content span {
    font-weight: 200;
    display: block;
    color: #FF9000;
    margin-top: 10px;
    font-size: 0.9rem;
}

#close-token-modal {
    position: absolute;
    top: 2px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 200;
    cursor: pointer;
    color: #333;
}

#close-token-modal:hover {
    color: #FF9000; /* Opcional: cambia de color al pasar el mouse */
}


/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}  

/*modal token*/

.custom-modal-token {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .custom-modal-content-token {
    border-radius: 10px;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
  }

/*modal register*/

.error-message {
    color: rgb(255, 115, 0);
    font-size: 14px;
    margin-top: 10px;
}


.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .custom-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
  }
  
  .custom-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .custom-close:hover,
  .custom-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  

/*-------------*/

/*modal login*/

.modal {
    display: none; /* Oculto por defecto */
    position: relative;
    z-index: 500; /* Valor alto para que esté al frente */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 900px;
    text-align: center;
  }
  

  .close-login {
    position: absolute;
    color: #aaa;
    float: right;
    left: 490px;
    top: 0;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
  }

  .close-login:hover,
  .close-login:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
/*------------------*/

.container{
    position: relative;
    width: 70vw;
    height: 80vh;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.container::before{
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #FF9000, #583302);
    z-index: 6;
    transform: translateX(100%);
    transition: 1s ease-in-out;
}

.signin-signup{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 5;
}

form{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 40%;
    min-width: 238px;
    padding: 0 10px;
}

form.sign-in-form{
    opacity: 1;
    transition: 0.5s ease-in-out;
    transition-delay: 1s;
}

form.sign-up-form{
    opacity: 0;
    transition: 0.5s ease-in-out;
    transition-delay: 1s;
}

.title{
    font-size: 35px;
    color: #111111;
    margin-bottom: 10px;
}

.input-field{
    width: 100%;
    height: 50px;
    background: #f0f0f0;
    margin: 10px 0;
    border: 2px solid #FF9000;
    border-radius: 50px;
    display: flex;
    align-items: center;
}

.input-field i{
    flex: 1;
    text-align: center;
    color: #FF9000;
    font-size: 18px;
}

.input-field input{
    flex: 5;
    background: none;
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    font-weight: 200;
}

.btn{
    width: 150px;
    height: 50px;
    border: none;
    border-radius: 50px;
    background: #FF9000;
    color: #FFFFFF;
    font-weight: 600;
    margin: 10px 0;
    text-transform: uppercase;
    cursor: pointer;
}

.btn:hover{
    background: #c57308;
}

.social-text{
    margin: 10px 0;
    font-size: 16px;
}

.social-media{
    display: flex;
    justify-content: center;
}

.social-icon{
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    border: 1px solid #444;
    border-radius: 50px;
    margin: 0 5px;
}

a{
    text-decoration: none;
}

.social-icon:hover{
    color: #FF9000;
    border-color: #FF9000;
}

.panels-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.panel{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 35%;
    min-width: 238px;
    padding: 0 10px;
    text-align: center;
    z-index: 6;
}

.left-panel{
    pointer-events: none;
}

.content{
    color: #FFFFFF;
    transition: 1.1s ease-in-out;
    transition-delay: 0.5s;
}

.panel h3{
    font-size: 24px;
    font-weight: 600;
}

.panel p{
    font-size: 15px;
    padding: 10px;
}

.image{
    width: 100%;
    transition: 1.1s ease-in-out;
    transition-delay: 0.4s;
}

.left-panel .image, 
.left-panel .content{
    transform: translateX(-500%);
}

.right-panel .image, 
.right-panel .content{
    transform: translateX(0);
}

/*animaciones*/

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none;
}

input[type="password"]::-webkit-reveal {
  display: none;
}

input:focus,
input:focus-visible,
input:focus-within,
input:-webkit-autofill:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

input {
  outline: none !important;
  box-shadow: none !important;
}

input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: #000 !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}



.container.sign-up-mode::before{
    transform: translateX(0) ;
}

.container.sign-up-mode .right-panel .image,
.container.sign-up-mode .right-panel .content{
    transform: translateX(400%);
}

.container.sign-up-mode .left-panel .image,
.container.sign-up-mode .left-panel .content{
    transform: translateX(0);
}

.container.sign-up-mode form.sign-in-form{
    opacity: 0;
}

.container.sign-up-mode form.sign-up-form{
    opacity: 1;
}

.container.sign-up-mode .right-panel{
    pointer-events: none;
}

.container.sign-up-mode .left-panel{
    pointer-events: all;
}



@media (max-width: 900px) {
    html, body {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
    }

    .title {
        padding-top: 15px;
        font-size: 30px;
    }

    .container::before {
        display: none;
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 90%;
        height: 820px;
        min-height: 100%;
        padding: 20px 0;
        box-sizing: border-box;
    }

    .signin-signup {
        display: grid;
        justify-content: center;
        align-items: center;
        position: relative; /* ✅ NO fixed */
        width: 100%;
    }

    form {
        width: 100%;
    }

    form.sign-in-form {
        display: flex;
        opacity: 1;
        transition: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    form.sign-up-form {
        opacity: 1;
        transition: none;
    }

    .panels-container {
        display: none;
    }
}

@media (max-width: 344px) and (max-height: 882px) {
    .title {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .input-field {
        height: 30px;
    }

    .btn {
        width: 150px;
        height: 35px;
        border: none;
        border-radius: 50px;
        background: #FF9000;
        color: #FFFFFF;
        font-weight: 600;
        margin: 10px 0;
        text-transform: uppercase;
        cursor: pointer;
    }
}

@media (min-width: 350px) {
    .title {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .input-field {
        height: 30px;
    }

    .btn {
        width: 150px;
        height: 35px;
        border: none;
        border-radius: 50px;
        background: #FF9000;
        color: #FFFFFF;
        font-weight: 600;
        margin: 10px 0;
        text-transform: uppercase;
        cursor: pointer;
    }
}

@media (min-width: 400px) {
    .input-field {
        height: 40px;
    }
}
