﻿/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a center/cover no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    transition: background-image 0.5s ease-in-out;
}

/* Vídeo de background (para quando selecionado no script) */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.bg-video.playing {
    opacity: 1;
}

/* Container principal centralizado */
.main-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Container do login */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;}

.login-box {
    width: 100%;
    max-width: 450px;
    background: rgba(97, 97, 97, 0.548);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgb(255, 255, 255);
    position: relative;
    overflow: hidden;
    padding: 40px 35px;
    margin: 0 auto;
    z-index: 10;}


.form {
    display: flex;
    flex-direction: column;
    gap: 16px;    width: 100%;
}

.logo {
    width: auto;
    height: auto;
    background: transparent; /* sem gradiente atrás do logo */
    border-radius: 0;    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto 12px;
    box-shadow: none;
    padding: 0;
}

.logo::before,
.logo::after {
    content: none; /* remove ornamentos e qualquer "ícone" residual */
    display: none;
}

/* Imagem do logo dentro do container */
.logo-img {
    max-width: 120px; /* ajuste de tamanho do logo */
    height: auto;
    display: block;
    object-fit: contain;}

.header {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #FFCB57;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);}

.subtitle {
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 20px;}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #FFCB57;
    margin-bottom: 8px;}

.input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Wrapper para o campo de senha com botão de mostrar/ocultar */
.password-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-input-wrapper .input {
    padding-right: 52px; /* Espaço para o botão do olho */
}

/* Botão de mostrar/ocultar senha - Estilização Profissional */
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(71, 71, 71, 0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    z-index: 10;
    width: 42px;
    height: 42px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.password-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 203, 87, 0.2) 0%, rgba(255, 203, 87, 0.05) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.password-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 203, 87, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.password-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 203, 87, 0.25) 0%, rgba(255, 203, 87, 0.15) 100%);
    border-color: rgba(255, 203, 87, 0.5);
    color: #FFCB57;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 
        0 4px 16px rgba(255, 203, 87, 0.3),
        0 2px 8px rgba(255, 203, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.password-toggle:hover::before {
    opacity: 1;
}

.password-toggle:hover::after {
    width: 60px;
    height: 60px;
}

.password-toggle:active {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 
        0 2px 8px rgba(255, 203, 87, 0.25),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password-toggle:focus {
    outline: 2px solid rgba(255, 203, 87, 0.6);
    outline-offset: 3px;
    border-color: rgba(255, 203, 87, 0.6);
}

.password-toggle i {
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.password-toggle:hover i {
    color: #FFCB57;
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(255, 203, 87, 0.4));
}

.input:focus {
    border: 2px solid #FFCB57;
    background: rgba(255, 203, 87, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 203, 87, 0.1);
}

/* Quando o campo de senha está focado, destacar o botão também */
.password-input-wrapper:focus-within .password-toggle {
    border-color: rgba(255, 203, 87, 0.4);
    background: linear-gradient(135deg, rgba(255, 203, 87, 0.18) 0%, rgba(255, 203, 87, 0.12) 100%);
    box-shadow: 
        0 2px 8px rgba(255, 203, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FFCB57;
}

.forgot-password {
    color: #FFCB57;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.forgot-password:hover {
    color: #ffffff;
}

.button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #dbdbdb33;
    color: #ffffff;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(43, 43, 43, 0.3);
}

.button:hover {
    background: #ffffff65;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 43, 43, 0.4);}

.button i {
    font-size: 16px;
}

.register-link {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.register-link a {
    color: #c2a500;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #ffffff;
}


/* Responsividade */
@media (max-width: 768px) {
    .login-container {
        max-width: 90%;
        padding: 0 15px;
    }
    
    .login-box {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .header {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .input {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .password-input-wrapper .input {
        padding-right: 44px;
    }
    
    .password-toggle {
        right: 4px;
        width: 38px;
        height: 38px;
    }
    
    .password-toggle i {
        font-size: 16px;
    }
    
    .password-toggle:hover::after {
        width: 50px;
        height: 50px;
    }
    
    .button {
        height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .login-container {
        max-width: 95%;
        padding: 0 10px;
    }
    
    .login-box {
        max-width: 100%;
        padding: 18px 12px;
    }
    
    .header {
        font-size: 20px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .input {
        padding: 6px 0;
        font-size: 11px;
    }
    
    .password-input-wrapper .input {
        padding-right: 40px;
    }
    
    .password-toggle {
        right: 3px;
        width: 34px;
        height: 34px;
    }
    
    .password-toggle i {
        font-size: 15px;
    }
    
    .password-toggle:hover::after {
        width: 45px;
        height: 45px;
    }
    
    .button {
        height: 38px;
        font-size: 12px;
    }
    
    .form {
        gap: 10px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .options {
        margin-bottom: 14px;
    }
    
    .button {
        margin-bottom: 14px;
    }
}
