body {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #1e1e1e;
    overflow: hidden;
    position: relative;
    background-image: url('../ipecont.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    background-attachment: fixed;
}

/* Camada de sobreposição para transparência */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 30, 30, 0.80); /* Aumentei a opacidade para 0.95 */
    z-index: 0;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF4D4D, #FF8C00, #FFD700, #4CAF50, #3498db, #9B59B6);
    z-index: 1000;
}

.form-signin {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    margin: auto;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.form-signin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shine 8s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.form-signin:hover {
    transform: translateY(-5px);
}

.form-signin h1 {
    color: #e0e0e0;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-signin h1 i {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorChange 8s infinite;
}

@keyframes colorChange {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.form-floating {
    margin-bottom: 0;
}

.form-floating > label {
    display: none;
}

.form-control {
    border-radius: 10px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    background-color: #333333 !important;
    color: #e0e0e0 !important;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #888888;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container input {
    padding-left: 45px !important;
    height: 50px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    z-index: 10;
    transition: all 0.3s ease;
}

.input-container:focus-within .input-icon {
    color: #2ecc71;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #3498db;
    z-index: 10;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #2ecc71;
    transform: translateY(-50%) scale(1.1);
}

.messages {
    margin-bottom: 20px;
}

.alert {
    border-radius: 10px;
    animation: slideIn 0.5s ease-out;
    background: linear-gradient(45deg, #c0392b, #e74c3c) !important;
    border: none;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Estilos para as logos no login */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.login-logo {
    max-width: 200px;
    height: auto;
}

.login-logo:hover {
    transform: scale(1.05);
}

/* Estilos para o texto de boas-vindas */
.welcome-text {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 25%;
    padding: 20px;
    color: #fff;
    text-align: center;
    animation: fadeIn 1s ease-in;
    z-index: 2;
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
}

.welcome-logo {
    width: 50px;
    height: auto;
    margin-bottom: 20px;
}

.welcome-text h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #3498db;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateX(-5px);
    background: #333333;
    border-color: #3498db;
}

.feature-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #3498db;
}

.feature-item p {
    font-size: 0.9rem;
    margin: 0;
    color: #e0e0e0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Ajuste responsivo */
@media (max-width: 1200px) {
    .welcome-text {
        display: none;
    }
}

/* Ajustes responsivos */
@media (max-width: 576px) {
    .form-signin {
        max-width: 100%;
        margin: 10px;
        padding: 20px;
    }

    body {
        background-position: center;
        background-size: cover;
        padding: 15px;
    }

    .input-container input {
        height: 45px;
    }

    .btn-primary {
        padding: 10px;
    }

    .login-logo {
        max-width: 150px;
    }

    h1 i {
        font-size: 4rem !important;
    }
}

@media (max-width: 320px) {
    .form-signin {
        padding: 15px;
    }

    .input-container {
        margin-bottom: 15px;
    }

    .input-container input {
        height: 40px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 8px;
        font-size: 14px;
    }

    .login-logo {
        max-width: 120px;
    }

    h1 i {
        font-size: 3.5rem !important;
    }
}
