@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../img/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

/* Camada de opacidade com animação */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    animation: fadeIn 1s ease-in-out;
}

/* Animação do logo de fundo */
body {
    animation: zoomIn 1.5s ease-in-out;
}
.card{
    height: 500px;
    perspective: 1000px;
    width: 420px;
    color: #fff;
    backdrop-filter: blur(10px);
    /* Animação de entrada */
    animation: slideInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-fill-mode: both;
   
}

.container{
     position: relative;
     width: 100%;
     height: 100%;
    transition: transform 0.9s;
    transform-style: preserve-3d;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
    border-radius: 10px;
     animation: slideInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-fill-mode: both;
}
 .cardflit{
    transform: rotateY(180deg);
}
.card-front ,.card-back{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backface-visibility: hidden;
}
.card-front{
  
    transform: rotateY(180deg);

}
/*.card-back{
   
    
   
}*/
.login-box  h1 {
    font-size: 36px;
    text-align: center;
    color: #fff;
    animation: fadeInDown 1s ease 0.3s both;
}
.login-box{
     width: 100%;
    border-radius: 10px;
    color: #fff;
    padding: 30px 40px;
    backdrop-filter: blur(10px);
    /* Animação de entrada */
    animation: slideInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-fill-mode: both;
}
.login-box >.input-box{
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
    
    /* Animação dos inputs */
    animation: fadeInLeft 0.6s ease forwards;
}

/* Delay progressivo para cada input */
.input-box:nth-child(2) {
    animation-delay: 0.4s;
}

.input-box:nth-child(3) {
    animation-delay: 0.5s;
}

.input-box input{
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    display: block;
    border-radius: 40px;
    outline: none;
    font-size: 16px;
    color:#fff;
    padding: 20px 45px 20px 20px;
    transition: all 0.3s ease;
}

.input-box input:focus{
    border-color: rgba(255, 255, 255, .5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.input-box input::placeholder{
    color: #fff;
}

.input-box i{
    position: absolute;
    right: 20px;
    top: 25%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.input-box input:focus i {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.remember-forgot{
    display: flex;
    justify-content: space-between;
    margin: -15px 0 15px;
    color: #fff;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.6s forwards;
}

.remember-forgot label{
    accent-color: #fff;
    margin-right: 5px;
    cursor: pointer;
}

.remember-forgot a{
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.remember-forgot a:hover{
    text-decoration: underline;
    transform: translateX(5px);
    display: inline-block;
}

.login{
    width: 100%;
    height: 50px;
    background-color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0,0,0, .1);
    transition: all 0.4s ease;
    
    /* Animação do botão */
 
    animation: fadeInUp 0.6s ease 0.7s forwards;
}

.login:hover{
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.login:active{
    transform: translateY(-1px);
}

.resgister-link{
    font-size: 18px;
    text-align: center;
    padding: 5%;
    animation: fadeIn 0.6s ease 0.8s forwards;
}

.resgister-link #btn ,#btn0{
    border: none;
    background: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 2%;
    font-size: 18px;
    
    
}

#btn:hover ,#btn0:hover{
    border-bottom: #fff solid 2px;
    transform: translateX(5px);
    display: inline-block;
}


.register-link p{
    color: #fff;
    
}
/* ============================================
   ANIMAÇÕES KEYFRAMES
   ============================================ */

/* Fade In simples */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade In Down - Título */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Up - Card */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left - Inputs */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Up - Botão login */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Zoom In - Background */
@keyframes zoomIn {
    from {
        background-size: 55%;
    }
    to {
        background-size: 50%;
    }
}

.container:hover {
    border-color: rgba(255, 255, 255, .4);
    box-shadow: rgba(255, 255, 255, 0.1) 0px 20px 40px -5px, 
                rgba(0, 0, 0, 0.1) 0px 10px 20px -5px;
    transition: all 0.3s ease;
}
/* ============================================
   SUPORTE A TAMANHO DE FONTE VARIÁVEL
   ============================================ */
:root {
  --base-font-size: 16px;
  --animation-duration: 0.3s;
}

body {
  font-size: var(--base-font-size);
}

/* ============================================
   MELHORIAS PARA MODO ESCURO
   ============================================ */
[data-theme="dark"] .custom-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .avatar-placeholder {
  background: linear-gradient(135deg, #3a5f7d 0%, #4a7fa3 100%);
}

[data-theme="dark"] .theme-option.light {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}
.submit{
    display: block;
}
