@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('../img/fundo.jpg') no-repeat center center/cover;
    /* Removido o padding-top para evitar espaçamento duplicado */
}

body::before {
    content: "";
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    background: rgba(255,255,255,0.25);
    z-index: 1;
    pointer-events: none;
}

.login-container {
    width: 100%;
    min-height: calc(100vh - 80px);
    margin: 60px auto 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Removido o max-width */
}

/* Removido .login-container::before */

.login-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
    margin: 40px 0;
    position: relative;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-box h2 {
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a237e;
    font-size: 1.1rem;
}

.login-box input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    margin: 0;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.login-box input:focus {
    border-color: #1a237e;
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.15);
    transform: translateY(-2px);
}

.login-box button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-box button i {
    font-size: 1.1rem;
}

.login-box button:hover {
    background: linear-gradient(135deg, #3949ab 0%, #1a237e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
}

.login-box button:active {
    transform: translateY(0);
}

.register-link {
    margin-top: 25px;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.register-link a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.register-link a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #1a237e;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.register-link a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
    animation: slideIn 0.5s ease-out;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade */
@media (max-width: 480px) {
    .login-box {
        width: 90%;
        padding: 2rem;
    }

    .login-box h2 {
        font-size: 1.8rem;
    }

    .login-box input {
        padding: 12px 15px 12px 40px;
    }

    .login-box button {
        padding: 12px;
    }

    .logo {
        width: 100px;
    }
    
    .login-container {
        margin-top: calc(80px + 40px); /* Mais confortável no mobile também */
        min-height: calc(100vh - 80px);
    }
    /* Nenhuma alteração necessária para body::before */
}
