@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 {
    color: white;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar no login - versão simplificada */
.topbar-login {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 900 !important;
    border-bottom: 2px solid rgba(29, 214, 95, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.topbar-login .topbar-left-section {
    gap: 0;
}

.topbar-login .logo-link img {
    width: 70px !important;
    height: auto;
}

.topbar-login .botao-menu,
.topbar-login .btn-inicio-mobile,
.topbar-login .user-info {
    display: none !important;
}

.containerPai {
    width: 100%;
    flex: 1;
    background: linear-gradient(135deg, #14151a 0%, #1a1b26 50%, #14151a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    margin-top: 70px; /* Espaço para a topbar */
}

/* Efeito de partículas animadas no fundo */
.containerPai::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(29, 214, 95, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 152, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(156, 39, 176, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, -20px);
    }
}

.card {
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Imagem de fundo */
.card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url("../img/login_img.jpeg");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    border-radius: 0 24px 24px 0;
}

.login-content {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.login-header {
    text-align: center;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(29, 214, 95, 0.2) 0%, rgba(29, 214, 95, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(29, 214, 95, 0.3);
}

.logo-container i {
    font-size: 40px;
    color: #1dd65f;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.formLogin {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.messages-container {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(29, 214, 95, 0.2);
    border: 1px solid rgba(29, 214, 95, 0.4);
    color: #1dd65f;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    outline: none;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    border-color: #1dd65f;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(29, 214, 95, 0.1);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Estilos para o campo de senha com botão de visualizar */
.input-group-password {
    position: relative;
}

.input-group-password input {
    padding-right: 55px;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 0;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 6px;
    width: 40px;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.1);
}

.toggle-password:active {
    transform: scale(0.95);
}

.toggle-password i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.toggle-password:hover i {
    color: #1dd65f;
}

.btn-login {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #1dd65f 0%, #16a049 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(29, 214, 95, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 214, 95, 0.4);
    background: linear-gradient(135deg, #27ae60 0%, #1dd65f 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(5px);
}

.login-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.login-info p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    text-align: left;
}

/* Footer - Mesmo estilo da topbar */
.main-footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(29, 214, 95, 0.4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    box-sizing: border-box;
}

.footer-content {
    width: 100%;
    margin: 0;
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.footer-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-text i {
    font-size: 12px;
    opacity: 0.9;
    color: rgba(29, 214, 95, 0.8);
}

/* Responsividade */
@media (max-width: 768px) {
    .containerPai {
        padding: 10px;
        margin-top: 80px; /* Mais espaço em mobile para topbar */
    }
    
    .topbar-login .topbar-right {
        flex-direction: row;
        gap: 8px;
    }
    
    .topbar-login #datetime {
        font-size: 10px;
        padding: 5px 8px;
    }

    .card {
        padding: 40px 20px;
        min-height: auto;
        border-radius: 16px;
    }

    .card::after {
        width: 100%;
        opacity: 0.1;
        border-radius: 16px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .logo-container {
        width: 60px;
        height: 60px;
    }

    .logo-container i {
        font-size: 30px;
    }

    .input-group input {
        padding: 14px 18px 14px 50px;
        font-size: 15px;
    }
    
    .input-group-password input {
        padding-right: 50px;
    }
    
    .toggle-password {
        right: 15px;
        width: 35px;
    }
    
    .toggle-password i {
        font-size: 16px;
    }

    .btn-login {
        padding: 14px 20px;
        font-size: 15px;
    }

    .login-info h2 {
        font-size: 20px;
    }

    .login-info p {
        font-size: 13px;
    }

    .main-footer {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding: 0;
        background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
        backdrop-filter: blur(10px);
    }

    .footer-content {
        width: 100%;
        margin: 0;
        padding: 15px 20px;
        box-sizing: border-box;
    }

    .footer-text {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
        color: rgba(255, 255, 255, 0.75);
    }
}

@media (max-width: 480px) {
    .card {
        padding: 30px 15px;
    }

    .login-content {
        gap: 30px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 12px;
    }
}
